Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Incremeting the variable declared at scenario level

Options
krishnasoa
krishnasoa Posts: 13

Hi,

I declared a variable(integer type consider x=0) at scenario level. I have a value(consider 3) coming from the JSON data bank. Now I have to increment my scenario level variable(0) upto value(3) that I'm getting from JSON data bank. Please suggest me a way to do that.

Thanks

Comments

  • grigorb
    grigorb Posts: 17
    Options

    In your JSON data Bank extract the value 3 from element, then press "Modify" button select "Data Source Column" and check the "variable" option button in the right dropdown combo box select your x variable. This should be all you need to assign any extracted value from the JSON element to test suite variable.