| || |
Re: Dynamic Question Generation
1 Analyze: what questions and answers you have as your input resources
2. Organize them in pairs (question - correct answer)
3 Put them in some storage (INI file or DataTabe)
in order you have in hand correct answer if you know question
4 In QTP - change recorded script in such a manner:
read the field, where the question into Temp variable
(using GetROProperty(InnerTest), or another method, that gives you value of that)
5 Find in your variables that value and take associated answer
6 Send the answer as input into appropriate field
Dynamic Question Generation
In my application i have dynamic question generation. when i first record the script with QTP some set of questions appear and answers are Radio buttons so, i will select the correct answers.
when i rerun this scenario, questions can be diffrent order as well as answers.
could anyone has faced the same issue?
could anyone suggest a good solution for thid?
Note: if you need more info i will provide.