Incremeting the variable declared at scenario level

krishnasoakrishnasoa Posts: 11

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

  • grigorbgrigorb Posts: 17

    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.

Sign In or Register to comment.