I need to test a workflow where all of the pages are in the same order, but where the user starts isn't known at the time of testing. All of the individual pages have separate functions with parameters. They run independently of each other and I'd like to keep it that way
I thought that I could store all the functions in a list and then pass a variable to indicate where to start in the list, but when I define the list, it just runs the functions! Any ideas how to fix this?
This is as far as I got before figuring out the functions were running
teststeps = [page1(param1, param2), page2(param1, param2), page3(param1, param2), page4(param1, param2
teststepnumber = determinepage(param1, param2)
for item in teststeps[teststepnumber:]:
**Incomplete because I couldn't figure out how to run the functions**