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 we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);
in one page we have 100 links i have to click the 99th link how can i click the 99th link.
4 Answers GK Technologies, IBM,
What are the technologies supported by qtp?
How to modify the text checkpoint?
Excepton Handling?
how can we group that these test cases only should be automated and in which order you execute that test cases?
I am sathish , i want to test the Application of JIL.org ,Mobile Emulator ,by using QTP10.0. I am trying to do testing on that Application , but Child Objects are not identified by the QTP. Please can any one help me
how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance
What are the automation metrice in your project?
Explain how you can replace string in qtp?
How you know that a test case is a regression test case
Explain advantages and disadvantages of ddf?