Subscribe by Email


Showing posts with label Object Repository. Show all posts
Showing posts with label Object Repository. Show all posts

Friday, October 5, 2012

Explain the concept of object repository & how QTP recognizes objects?


Just like its Winrunner counterpart, the quick test professional also comes with an object repository which is the first aspect of this article that we are going to discuss in this article and the second aspect to be discussed is regarding the identification of the objects by the quick test professional. 

What is a Object Repository?

- Just like we have a store room and other storage places in our house, the same way the quick test professional consists of a storage place where the information regarding the objects can be stored and this storage place is called the “object repository”. 
- During the process of the identification of the objects, the presence of an interface is necessary between the application under test and test scripts in order for proper identification of the objects. 
- This interface is provided by none other than the object repository itself. 
- An object can be identified as a run time entity with some characteristic properties as well as structure. 
- Few examples of software objects are:
  1. Windows
  2. Web pages
  3. Edit boxes
  4. Buttons
  5. Check boxes and so on.

What kind of objects QTP recognizes?

Quick test professional recognizes 4 types of objects as mentioned below:
1. Run time objects
These are the objects that are present in the application under test or AUT such as links, check boxes, buttons etc.

2. Test objects
-Run time objects cannot be operated up on directly rather there references are created which are nothing but the test objects such as web button, link, win edit and so on. 
-These test objects are referenced by different names in different environments.

3. Utility Objects
- These are the objects that are reserved by the quick test professional for the purpose of testing as well as test reporting. 
- One such example is the reporter object for displaying the test results.

4. User defined objects (also known as the automation objects)
- In most of the cases objects are required that can perform some specific operations i.e., the user defined operations. 
- Such objects are referred to as the user defined objects.

How QTP recognizes objects?

- For every action that is performed on an object, a local repository is created by the quick test professional automatically while the recording is in progress.
- The local object repository is different from the global object repository in the respect that it cannot be shared among the tests.
- Additional objects can be added to this repository by the user as well as the existing ones can be modified. 
- Global object repository is more commonly known as the shared repository. 

Now let us focus up on the second aspect of the quick test professional i.e., the identification of the objects. 

- Quick test professional has got two major mechanisms for accomplishing this task as stated below:

1. Usual object identification mechanism
- In this mechanism, the learned description of the object i.e., the one provided by user is followed throughout the identification process for identifying the object. 

2. The smart identification mechanism
- This mechanism is smarter than the former one, more flexible but far complex. 
- It comes into play when the first one fails. 
- It rejects the description that was used in the first mechanism and prepares a list of objects that resembles properties defined by the quick test professional. - For the smart identification process to work properly it is required that it should be configured properly. 





Tuesday, September 18, 2012

Explain Quick Test Professional (QTP) Testing process?


The quick test professional is a software package that facilitates both the test automation as well as the software testing. To be an expert in quick test professional it is important that you understand both the test automation and software testing using the quick test professional. 
When the software testing process is carried out using the quick test professional it is referred to as the quick test professional test process. By now you must have got it that the emphasis of this article is on the same testing process. 
To say the quick test professional testing process constitutes of the following steps as mentioned below:
  1. Configuring of the record and run settings
  2. Creating an object repository (this step is optional is many cases)
  3. Creating the basic automation scripts
  4. Editing or enhancing the script
  5. Executing the script
  6. Debugging the script
  7. Analyzing the results
  8. Summarizing the results (this includes tracking the discovered defects and generating the report)

Major stages of the QTP testing process

1. Analyzation of the application
- This is the first test and is aimed at finding your testing needs. 
- This phase involves the type determination of the development environment of your application i.e., whether it is a web application or a windows application. 
- In either of the cases, you will need to load your quick test professional software with appropriate add ins. 
- There are available separated add – ins for both the web type and windows type applications. 
- These add – ins are required since they only give the power to quick test professional to identify as well work with the objects present in the application. - Next thing to determine are the business processes and functionality required. 
- For determining these two things you need to think about what your customer will do with the application. 
- The required business processes are then divided in to smaller groups or units and the actions based on these units are created. 
- This is done so because with smaller modular actions it becomes easy to read, follow and maintain the tests in the long term.

2. Preparation of the testing infrastructure: 
- Based on the needs that you determined in the first phase, the resources required are determined in this second phase. 
- The resources are either obtained or created as required. 
- The resources may include the following:
      a)   Object repositories along with the test objects.
      b)   Function libraries along with the functions that add to functionality of the quick test professional and so on.
- Also in this phase the settings of the quick test professional are configured as per the tasks need to be performed.

3. Building of the tests and addition of the steps to them: 
- By now the testing infrastructure is complete and now you can start developing your tests. 
- Any number of empty tests can be created and actions can be added to them so as to form the testing skeletons. 
- Relevant actions can be associated with the corresponding object repositories.
- Relevant tests can be associated with the function libraries. 
- Steps can be inserted with the help of key words and test preferences are also considered.

4. Enhancement of the test: 
- This phase includes insertion of the checkpoints so that you can easily search for a specific value of object, page or text etc and know whether or not your application is functioning properly.

5. Debugging, execution and analyzation of the test: 
- This phase ensures that the application is working without encountering any interruption. 
- Only if a test is running properly, it can correctly check the behavior of the application.

6. Reporting of the defects: 
- The defects discovered can be reported to the quality center if you have it installed on your machine. 


Wednesday, September 5, 2012

What is QTP? What are the types object Repositories in QTP?


HP has set out a new margin in the field of test automation by introducing the quick test professional. This test automation suite has a dedicated efficiency towards the automation of functional and regression testing scripts for testing software system, applications as well as environments.
There is no doubt that the quick test professional is from the family of HP quality center tool suite and can be very well used for enterprise quality assurance. 

What is Quick Test Professional (QTP)?

- A very user friendly graphical user interface is what that makes the quick test professional quite amiable with the users. 
- It provides extensive support for keyword and interface scripting.
- The language that is used here for manipulating the controls and objects present in the application and setting out the specifications for a test procedure is the VBScript or visual basic scripting edition. 
- The original writer of the quick test professional is mercury interactive itself as it was for the other HP products. 
- The current version of the quick test professional version 11.0 has been made available via the HP software division. 
- This present version of quick test professional has proved to be the most reliable as well as the stable version among the rest of the versions. 
- Till now 12 versions of quick test professional have been released out of which there was a version 7.0 which was never released. 
- Quick test professional can be called as a complete test automation tool than a test automation suite. 
- It mainly operates on the Microsoft windows operating system. 
- This test automation tool comes with a proprietary license. 
- The quick test professional can even test the test the testing environments unlike the previous test automation tools which could only test the software systems and applications. 
- It helps a great deal when it comes to the identification of the objects in a web page or an application user interface and can even perform desired user – interface interactions. 
- The quick test professional has been developed by HP especially for UI based test case automation but it can also be extended to automate some of the non UI based test cases such as those mentioned below:
  1. File system operations
  2. Web services testing
  3. Data base testing and so on.
- It is cent percent correct to say that the quick test professional is the true successor of winrunner. - In some of the cases it may happen that the HP quick test professional may not identify some of the complex as well as other customized user interface objects. 
- These objects have to be defined by the users as virtual objects. 
- However, there is no support provided by HP low level mode recording or analog recording of the virtual objects. 

Types of Object Repository of QTP

Now let us discuss regarding the object repository of the quick test professional. 
- An object repository can be thought of as a store room of quick test professional where it stores all the information regarding the objects. 
- The object repository also enacts as an interface between the AUT and test script in order to facilitate the identification of the objects during the execution process. 
- In QTP objects are classified in to following 4 categories:
  1. Test objects
  2. Utility objects
  3. Run time objects
  4. User defined objects or automation objects
- A local object repository is also created by quick test professional automatically for each and every action when the recording is in progress. 
- These local repositories cannot be shared among different tests. 
- However, they can be supplemented by additional objects by the user. 
- Operations like insertion, deletion and renaming can be performed by the user on the objects present in the local repository. 


Facebook activity