Quality is delighting customers
1)When any error is raised in the Script, the details of error is stored in which object
2). If we don’t want to execute any action what to do?
3). What is the return value for split, getROproperty, len, mid functions
4)If more than 1 object in the window has same description properties what mechanism is used by the tool to differentiate the objects
5 If object properties are changed during runtime what mechanism the tool can use to recognize the object
6)How to specify the datatable iterations for a local datasheet
7What type of problems one will face with QTP, if too many browsers are opened at a time?
8). How to make arguments optional in a function?
9). can u store QTP frame work folders in VSS? If Not where u store those?
plz send the answers
thanks in advance
Tags:
Permalink Reply by Sudhakar Singajogi on December 17, 2011 at 3:15pm dim a
a="Hello Glad To Answer For Your Question"
split(a," "): We are splitting the string 'a ' on the basis of a space
Here split will do the action and store those results in the form of an array.
Answer for 7 ques is
Cannot find the "[ WebElement ]" object's parent "[ Browser ]" (class Browser). Verify that parent properties match an object currently displayed in your application.
Answer for 4 ques is
We can differentiate by using an index, index value should starts with 0
If any wrong info plz correct me and excuse me.
With Regards
Sudhakar Singajogi
Permalink Reply by padmaja yaganti on December 17, 2011 at 3:33pm
Permalink Reply by Subbu on March 3, 2012 at 3:55pm 1)When any error is raised in the Script, the details of error is stored in which object
Err.Description
2). If we don’t want to execute any action what to do?
Question is not clear but here is answer according to my understanding:
Comment in Expert View.
3). What is the return value for split, getROproperty, len, mid functions
Splits returns Array
GetROProperty takes property of an object and returns its current value from AUT.
Len returns length of given string
Mid returns substring per given parameters.
4)If more than 1 object in the window has same description properties what mechanism is used by the tool to differentiate the objects
Index / Location
5 If object properties are changed during runtime what mechanism the tool can use to recognize the object
Smart Identification (but it is not suggestable to use, go with DP)
6)How to specify the datatable iterations for a local datasheet
Goto Action/Tree view and right click on action name, you can customize here. (Personally I dont like this dataTable, go with Excel COM)
7What type of problems one will face with QTP, if too many browsers are opened at a time?
Use CreationTime property you never get above error.
8). How to make arguments optional in a function?
Technically VB Script dont support. Alternative Use Array or Dictionary Object
9). can u store QTP frame work folders in VSS? If Not where u store those?
Yes you can store in VSS and also you can use QC (QC is very costly)
Here you can find little complex:
1. What is the use of FireEvent?
2. How many types of ReplayTypes in QTP and its Pros & Cons?
3. How to pass argument values for QTP Test Script (I am not asking for actions arguments)
4. How to create automatic HTML report for QTP Test Results?
5. How to call a Oracle SP in QTP?
6. Explain recovery system you used in your current application?
7. How to do cross browser testing in QTP?
I will post more later.
Thanks
Subbu.
© 2012 Created by Quality Testing.