Quantcast
Channel: LoadRunner Practitioners Forum topics
Viewing all articles
Browse latest Browse all 3978

C Vuser - parsing failed even though systax is correct and script runs

$
0
0

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?


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>