1. In build1 there is a page with two check boxes and
a submit button. You have prepared a script for that page
and its working fine. In Build 2 the developers have added
two checkboxes in the page. Will the script prepared for
Build 1 work for Build 2 or not. If yes, why and if No,
why. Remember the developers have not touched the object
properties of the textboxes in the page.
Answers were Sorted based on User's Feedback
Answer / rayudu
Yes, Exactly!.It will work if you have written a
descriptive programing.
Write a code in descriptive programming to find out the no
of Check boxes using child object method.It will work for
not even two, Any no of Check boxes.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / litan
Its all depends how you developed the Script.
If you are not using Index Property for the checkbox,Then
it will wotk.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sureshsinghbhandari
Yes it will work,
As the Object and their properties (Properties of Checkbox like "html tag, name, type") are not changing by adding 2 more checkboxes.
If we are using DP and using Index property of the checkbox on then on adding 2 new the code might be work or not; its depend on the Place of the new checkbox, which might change the indexing of the previous boxes.
| Is This Answer Correct ? | 1 Yes | 0 No |
I need to obtain the parent of an object programatically, so if I have: winButton("aButton") I need to obtain the parent part: window("Window1").Dialog("Dialog1") so I can programatically create a string of the full name of the object to call it with an execute statement in QTP I would like to use something like: part[1] = "window(""Window1"")" part[2] = "dialog(""Dialog1"")" so I can do: exeLine = part[1]&"."&part[2]&"."&"winButton(""aButton"")" Execute exeLine Apart from keeping a record of the window/dialog hierarchy is there a parent or path function/ command Thanks Adrian
What are the types of Object Repositories in QTP?
QTP 9.2, Issue: Creating Shared Object repository. I recorded 2 scripts. I exported the Object Repository to a shared location for the first script. Associated the exported repository to the first script and deleted the Local Repository for the First Script. Now Opened the Second script and try to Add the Local Object Repository of 2nd Script to Exported Object Repository. But I fail. Can anyone please help in providing steps that need to be followed in creating a shared object repository? Thanks in Advance.
How can i select multiple values from drop down list using vb script in qtp? and wt is the script for clicking msg box box automatically with a specific time. Thanks in advance...Kalyani.
Hello Guys, Can anybody Explain me about Automation framework?? and how can we prepareAutomation Framework using QTP
How do u insert an object during runtime in qtp?
How to creating an output value using quicktest professional?
How to data driven test for Win objects in QTP ?
What are the most frequent errors you faced while executing your scripts?
Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?
write the code to reverse a string without using Strrev built in function.
Using Regular expression method some particular value is not present in given value. HOow do use regular expression? Forexample password all number,character ,special character are accepted but (_',)underscore,comma are not used. How do write regular expression.