I think I've stumbled on a bug in VuGen (Version 11.52 Build 4391).
I was writing C code and got a "Script parsing failed" even though my code was correct. I even ran it and it replayed successfully. But this parsing failed message stuck and it causes lots of "misbehaviors" on VuGen. So I started simplifying my script to nail it down. This is what I got:
Action() { char *str = "ab"; if (str[0] == 'b') str[1] = 'c'; lr_output_message("%s", str); return 0; }
What I noticed is that every time I have a criteria (on a while or if clause, for example) that checks for a single char. The parsing fails.
There some crazy conditions that make this bug go away. One I found is to add a double-quote in the next statement or even a comment. From example, in the code above, adding the following comment makes the parsing succeed:
if (str[0] == 'b') //" str[1] = 'c';
Now to my question... Can you reproduce this? Where do we report bugs to HP LoadRunner?