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


Please Help Members By Posting Answers For Below Questions

What are the differences between quicktest professional and winrunner?

538


Can testing be done on the production system, or will a separate test system be required? How are browser caching, variations in browser option settings, dial-up connection variabilities, and real-world internet 'traffic congestion' problems to be accounted for in testing?

620


How to use Environment parameterization? Explain with an example.

1481


how to do the batch testing in test director using manual testing procedure?

1778


how to test load test and block box testing an a web based application pls give ans briefly

1358






how to idetfy which test cases are automated?who will deside that plz tell me

1538


why should we give deliver good quality software?

1628


What are the types of object repository?

584


How many types of recording modes in qtp? Which will be used when?

552


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

1389


What is the XML file architecture ?

1555


How QA specialist can identify when programmatic descriptions are useful?

1974


Can any one tell me about "Mapping Repository Parameter Values" and why we use it....??How to use it???Please, tell the preconditions also...........???? Thanks in Advance

1503


How can you close the second opened browser?

804


explain how to write vb script in qtp?when will you write own script?

1859