Forum Discussion
Hi ssinha...
I had do the exact same thing. I created a script to test an application for users to enroll in healthcare. Based on a series of questions the application would determine how to enroll the user... No healthcare, single coverage, family no spouse... I think you get it.
I found the easiest way to build my automation was to record myself clicking the radio buttons for each question for the purpose of mapping the questions only. I did not record the script for each scenario because it would have been way too many scripts.
The way I started was to record the first question - Do you want to enroll in healthcare - Yes / No. I did this only to map the questions and answers. I recorded the second question - do you want to cover children? Yes / No again to map the questions and answers. Once I had all the questions and answers mapped, I created the automation with If Then statements. It is helpful if you have a flowchart to follow.
If question 1 = Yes go to question 2.
If Question 1 = No, go to question 2a.
I attached a screenshot of a small piece.
Hope this helps.
Dave.