Can any body tell me how can I choose the share object
repository and per action object repository mode. Please
give me with steps.
Answers were Sorted based on User's Feedback
Navigation:
test--> settings-->resources tab-->in that we will have
per action,shared.
PER ACTION:
.when we r working with single action tests
.we except tht the obj will not modified continusely
.if we r new to quick test and performing simple
recording and play back then select per action type
SHARED:
.if we r working with multiple tests
.we except tht the obj r modified continusely
.if we have less number of obj and more test scripts
.if we r expatised in quick test then select shared type
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sivakumar.
In QTP, default mode is per-action. We have a multiple
actions within the same script, each and every action
contains separate object repository. In per-action both
script and object repository both are tied with each other.
If you choose as shared object repository, all actions
contains only one object repository. We can use this object
repository to any actions, and memory is also save. Here
script and object repository both are independent with each
other.
Go to test menu --> click resources tab --> you can
view shared or per-action object repository.(In QTP 8.2 version)
| Is This Answer Correct ? | 0 Yes | 0 No |
To count the no of links present in the yahoo home page i have written the script like this Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile ("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo! India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing While running the script it showing error that object "yahoo"isnot found in the object repository. Is there any setting before running the script? if yes what is the steps for it.Im using QTP9.0
How do I get the QTP scripts result in xml format by using vb script function?
pls guys understand this is question CAREFULLY,,, interviwer asks can u write test case for ATM m/c..i told, insert card enter pw...like this,,but interviwer not happy with that...ur not going to atm center? in ur office system ur testing ATM M/c...why ..how to test? what is the process?
How to use setroproperty?
How to delete an object from the object repository?
A web page has two butons with same properties and rotating in clockwise direction. how to click on any of the button?
How to find the difference between 2 dates in qtp?
QTP WAS WORKING FINE BUT TODAY I GOT THE ERROR , THE MEMORY COULD NOT BE READ -REFERENCE MEMORY ,pPLEASE REPLY URGENT WHAT IS THE SOLUTON
Does the Existing reusable action can be modified at the time of calling the action?? Please help me..
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
When should I use smart identification?
How did u write macros?What is the main importance of VB macros in testing environment?