Shared Object Repository is preferable while dealing with dynamic objects ok? descriptive prog also same?
ok but why descriptive?(only for w/o application)
Answers were Sorted based on User's Feedback
Answer / saritha
Below are some situations when Descriptive Programming can be considered useful.
1] The objects in the application is dynamic in nature and need special handling to identify the object.
2] When object repository is getting huge due to the no. of objects being added.If the size of object repository increases too much then it decreases the performance of QTP while recognizing a object.
3] When you don't want to use object repository at all.Well the first question be why not object repository?consider the following scenario which would help understand why not object repository
scenario 1] suppose we have a web application that has not been developed yet.Now QTP for recording the script and adding the objects to repository needs the application to be up,that would mean waiting for the application to be deployed before we can start of making QTP scripts.But if we know the descriptions of the object that will be created then we can still start off with the script writing for testing.
scenario 2] suppose an application is 3 navigation buttons on each and every page.Let the buttons be "Cancel","Next" and "Back".Now recording action on these buttons would add 3 objects per page in the repository.For a 10 page flow this would mean 30 objects which could have been represented just by using 3 objects.So instead of adding these 30 objects to the repository we can just write 3 descriptions for the object and use it on any page.
4] Modification to a test case is needed but the object repository for the same only is Read only or in shared mode i.e ,changes may affect other scripts as well.
5]When you want to take action on similar type of object i.e, suppose we have 20 textboxes on the page and ther names are in the form txt_1,txt_2,txt_3 and so on.Now adding all 20the object repository would not be a good programming approach.There are two ways in which descriptive programming can be used.
I] By creating properties collection object for the description.
i i] By giving description in the form of string arguments.
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / ganesh
thank u...thanku.... very much saritha...
your 2nd point is excellent.....
pls tell me one more thing now a days which is imp...
and which is using most companies? Or or DP?
many thanks in advance
Is This Answer Correct ? | 3 Yes | 0 No |
What is the Difference between current version of QTP and QTP 8.2. Pls kidly Anybody let me know. Thanks in advance.
What is an Custom Object in QTP ?
How to automate a script in mainframes environment? I have the terminal emulator Add in. Describe in detail.
Can I record on netscape browser does it require any special settings ?
iam working in QTP for 2+ of exp if i attend the interview what r questions asked in perfomence testing{loadrunner} ? pls any one can say answer to this question?
what is On Error Resume Next ?
What is the difference between Client/Server application and Web application ?
how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me
There is web page with the webtable,this contains some data, how do you manipulate the data.
Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop (i.e. I first connect to remote desktop from my machine in order to run the application). I am able to record the script successfully with QTP running on my machine and application running on remote. However, when i run the recorded script, system fails to run it and indicates me that it does not identify the object. Is it possible to record and play while QTP and AUT are not on same machine?
How we can merge the object repositories?say if we have 2 or 3 object repositories then how we can merge them?Is there any option in QTP to merge the object repositories?
How to retrieve alpha bate from the alphanumeric string with special character.