Shared Object Repository is preferable while dealing with dynamic objects ok? descriptive prog also same?
ok but why descriptive?(only for w/o application)
Answer Posted / 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 |
Post New Answer View All Answers
How many types of recording facility are available in quicktest professional?
How will you compare keyword and expert view?
Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?
when a test case is written how u test using qtp
why should we give deliver good quality software?
what is object and child object.. explain ..if possible give some example for better understanding ..
What the differences are and best practical application of Object Repository?
describe some problems that u had with automating testing tool?
What are the Application Functions available in QTP?
When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.
Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement
Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you
How to export quicktest professional (qtp) results to an .xls file?
Where is the Bitmap checkpoint information stored?
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process