Using Variables for Numbers that Increase
I want to create a test that goes in to our system and tests the function of creating and saving a work order. It needs to open up a new work order and assign that work order a unique number. I believe using a variable in the work order number field is the answer, but a but stumped on how to do it.
Our system won't allow a work order to be saved if it shares the same number as another that is already in the database. So, I need a way to open a new work order, enter the number of the order created the last time the test ran +1. For instance if I run the test on Monday and it creates Work Order # 151, when I run the same test on Tuesday, I'd like it to create work order # 152, and on Wednesday #153, and so on for infinity.
If it's possible to make suggestions keyword-test-style instead of scripting-style, that would be so much appreciated.
Thanks in advance!