hi all
QTP recognizing objects
as "string_1","string_2","string_3","string_4" like that
but when using FOR LOOP for these.QTP not proceeding further
can i declare these _1,_2,_3,_4 as a single variable
Answers were Sorted based on User's Feedback
Answer / sachin
hey,
i have answer to this question.
i too have faced a similar kind of issue when looping
throgh a process while clisk on a link in page..
As stated in the question that values are changing
as "string_1","string_2","string_3","string_4" this is
mainly because the index value is changing..
Note : go to repository for string_1 and check the index
value , likewise check the index value for string_2 and
string_3..check if all three have an oderly increments like
for string_1 the index value in object repository will be 1
and string_2 should be 2.. and so on.
All to need to do is consider one recorded object either
srting_1 or string_2 .. or any one amoung the four recorded
object .. After loop completed one iteration and moves to
second iteration, jst set the index value of selected
object to 1, 2.. and so on ..Use SetTo property method to
set the index value ..
Do let me know if u have any problem's
Thanks
Sachin.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sandipgami84
u can use Refular Expression
string_1,
string_2,
string_3,
string_4,
string_ Is Same... Not Change
string_.* u USE.....
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / dimple
As per my understanding in for loop qtp is loosing the
object property.
so set the property value again in for loop and try.
Please correct me if iam wrong.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ramchandra patil
u can use Regular expressions and iterate through loop.No
need to declare four variables.
Let me know if u need code.
Ramchandra Patil
9699851282
| Is This Answer Correct ? | 0 Yes | 0 No |
What is qtpro? What is quick test pro?
Is QTP a compiler or interpreter..? can you we execute a QTP Script file in a another system which does not have QTP installed..??
I'm having a problem to get the status(pass or fail) during runtime for every iteration ran, and must get the results stored to an excel sheet if possible.
what is the object properties settings in the QTP
Hi, I have weblist which contains the data like Design change,admin edit and cost saving etc.. User doesn't know the values existed in weblist. Now the user has to select the right value from the list otherwise the test will fail. Pls help me "To select the correct value from the list"
Thanks....But can u tell me how i use the QTP for GIS with one Example...
Gmail application is there.On that Inbox so many mails are there including naukari mails. On that mails i can select the only naukri mail checkboxes. plz tell the descriptive code for the above..
I want different types of discriptive programming statments coded for different types of web-objects?Give syntax and example?
How do you export an output to a excel sheet? Ex: I get my answer by using Msgbox"..." &R. How do I displayed the result of the Msgbox (such as R) to an excel sheet? Please let me know.Thanks
How to call a function in QTP?
How to use Regular Expressions in QTP
WHAT IS THE SIZE OF OBJECT REPOSITORY USING IN YOUR COMPANY? Can any body tell me answer of this quation........