C Vuser - parsing failed even though systax is correct and script runs
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:
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 == 'b') //"
str = 'c';
Now to my question... Can you reproduce this? Where do we report bugs to HP LoadRunner?
It explains that the error message appears because VuGen parser does not currently support referencing a typedef that is declared in a script.
I want to check if in some of the other files in the script some line of code could be causing the error message. Could you please make an empty script without any additional lines of code in the header file, paste the code you have provided and check if the issue will reproduce.
Additionally you are attempting to modify a const string, which str is pointing to. The correct way to do it is char str; strcpy(str, "ab");