Quantity Increment

Hi All,

I want to update quantity everytime by increasing the value.
How can that be done
Can we add increment values in katalon studio?

Follow this advice and post back - Pay attention to “We are not wizards or gods…”

@gayathri.jayakumar Please follow the advice given by Russ.

From your this sentence it looks like you are doing trying to do automated testing on an e-com website.

I would suggest you try this logic if you are looking to increase the quantity of a given item randomly.

  • Generate a random number between 1 to 10.
  • Based on that number update the quantity.

We will need more info like @Russ_Thomas has said, although i think i understand what you are trying to do.

You could stick the lines of code in a loop, make the “value” a variable and stick ++ on the end when your inserting it into the quantity field. Then every time it loops through the value will be incremented each time.

1 Like