Micro Focus QTP (UFT) Forums
What exactly I should do in QTP when questions Randomly changes. - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions)
+--- Thread: What exactly I should do in QTP when questions Randomly changes. (/Thread-What-exactly-I-should-do-in-QTP-when-questions-Randomly-changes)



What exactly I should do in QTP when questions Randomly changes. - QA Analyst - 04-12-2012

Hi
I have a scenario to test. I am recording an script for Forgot password in my application. the situation is that while creating an account I have provided three questions and in Forgot Password screen only two questions have been asked and they change randomly each time we visit forgot password screen. now my script has question 1 and Question 2 but when I run the script questions changed as Question3 and question1 but my recorded answers are as per recording. in this scenario what should I do? Can you please help me???

Thanks in Advance
- QA


RE: What exactly I should do in QTP when questions Randomly changes. - sshukla12 - 04-13-2012

Hi,

Instead of going for record and play approach use the Object identifications to add the questions in OR based on the properties of objects.
Use conditions like if to check which question is displayed this time and proceed with respective answers.

Let me know if some more help is required.

Regards,
Sankalp