My Space

May 6, 2009

QTP Virtual Objects

Most of QTP users are very familiar with Virtual Objects because it solves unrecognized application objects problem. Sometime we work with those applications that have different types of objects but tool does not recognize and support those objects as object. So for this kind of problem every successful tool provides the facility to recognize those objects as Virtual Object.

QTP tool is also providing same and easy steps to define the Virtual Object. Basically we used Virtual object functionality when tool does not support any application object as object.

As we discussing Virtual Object in respect to QTP tool, there some important points which should get the notice by every QTP users.

Point 1: Define the Virtual Object size and position in the web page by using the crosshairs pointer.

Point 2: During a run session make sure that application window should come in same size and same location. May be it effect the coordinates of virtual object.

Point 3: We can not insert any checkpoints for virtual object.

Point 4: We can not use Object Spy for virtual Object.

Point 5: We can use Virtual Object only in recording and running session.

Point 6: Virtual objects store in the computer, not only for current test.

Point 7: We can define the virtual object only for those object in which, we can click or double click.

We can see the all defined virtual objects with the help of Virtual Object Manager window. Basically it list out the all created virtual objects. We can delete or disable the objects with the help of Virtual Object Manager and Options windows. Virtual Object Manager window provide the facility to delete the objects after selecting them and if you want tool should keep the objects but don’t recognize, for that you have to check the option “Disable recognition of virtual objects while recording” in Tool > Options window.

I think these are the basic and important points for those who want to use Virtual Object feature in QTP and if I’m missing something please update with your valuable comments

May 4, 2009

QTP Test Object Model

Filed under: My Technical View — Mayank @ 8:29 am
Tags: , , ,

To understand Test Object Model we can break it in three different terms, that are-

Object

Test Object

Test Object Model

Object, one of the units of your application.

Test Object, If QTP performs any operation on application Object and stores it for testing then we called it Test Object.

Test Object Model, QTP contains large set of Object types that it uses to recognize the application object.

I think now we can discuss about it in details. QTP uses this concept to tell the QTP engine that how tool will record the Object and Object Operation of the application. As I said that Test Object Model is large set of Objects which it uses to understand the objects but how QTP recognize the Object as Test Object and how it know that what type of operation tool has performed over the Object. For that QTP have different types of Class that represent the each and every Test Object of QTP. We can describe the Class mean like Four Wheeler is the class but different Cars are the object of the “Four Wheeler”. So classes are having different type of Properties and Methods that Test Objects uses to simulate the application objects.

Basically Properties use to recognize the type of Objects and Methods use to recognize the performed operation over the Object. So with the help of Properties and Methods QTP understand the application objects and performed action which are done by Tester and recorded by QTP.

So in simple word QTP uses Test Object Model to recognize the objects of the application.

May 3, 2009

QTP Shortcut Keys

My first CTO says that if you want to be smart user of the system, use shortcut keys to handle your system. So I thought that why should not post the list of QTP shortcut keys for QTP users

May be in these most of shortcut keys are common for most of guys but here most of guys are still newbie in QTP.

Ctrl + N- Creates a New Test

Ctrl+Shift+N- Creates a New Business Test

Ctrl+Alt+N- Creates a New Application Area

Shift+Alt+N- Creates a New Function Library

Ctrl+O- Opens an Existing Test

Ctrl+Shift+O- Opens an existing business component

Ctrl+Alt+O- Opens an existing Application Area

Shift+F2- Rename the Action name

Ctrl+M- Make the comment on current row

Ctrl+Shift+M- Remove the comment

Ctrl+Space- Completes the word if you are typing any VBScript method or object in Expert View

F12- For Standard Checkpoint

Ctrl+F12- For Standard Output Values

F7- Step Generator

F8- New Step in Keyword View

Shift+F8- New Step after block of statement

F3- Recording

F4- Stop the Recording

F5- Run the Script

Ctrl+F5- Run the selected step in the script

Ctrl+R- Open the object repository

Shift+Alt+F3- Analog Recording

Ctrl+Shift+F3- Low Level Recording

F11- Step Into

F10- Step Over

Shift+11- Step out

Ctrl+F10- Run to Step

Ctrl+T- Adds the selected item in the Watch tab

Ctrl+F7- Check the Syntax error in the script.

Ctrl+Page Up or Page Down- Toggles between the Keyword and Expert View.

You can add more if I’m missing some shortcut keys.

April 27, 2009

QTP Testing Framework

Filed under: My Technical View, QTP Docs., Testing Tools — Mayank @ 9:15 am
Tags: , ,

To start the testing with QTP, there is an important concept to understand i.e. framework. Frameworks basically define the way to handle the different operations in different methods.

As we all known we can create the test in two ways in QTP i.e. by recording and by scripting. We should also know that how we can improve the quality of test by using Framework concept. Basically QTP supports three kind of framework i.e. Linear, Modular, and Keyword Driven Framework.

In all three frameworks, Linear Framework is very easy and catchy by all newbie and beginner of QTP. Basically Linear Framework deals with individual script which is recorded under one Action and running individual. I think we all done this thing in very first when we get the QTP but I’m very sure, not all one know that we created and executed the test under Linear Framework. Anyway this is not big deal. I was also not aware when I get the QTP first time. So this is very simple and easy way to create the test by navigating through the application. But by using this method there are some limitations which we can not cross. Sometime when we test some business processes in one application, we may feel that some operations we repeat in all Linear Framework Script. To handle this situation we go with Modular Framework which solves this kind of problem by dividing the single test in multiple part or module.

In modular framework, tester basically divides the test in different parts which give the facility to use the different part of scripts in any tests. That solves the many problem of repeataion of test and gives the facility to make the script reusable? So in one sentence, Division of Linear Framework script in different parts called Modular Framework.

To understand the keyword driven framework, tester should know the basic of programming because it deals with function. In programming, Function is an important part of programming as they allow you to create chunks of code that performs a specific task. Basically we create the functions in the one test and calling these functions as keyword in other tests therefore we are calling keyword driven framework. This is very important and useful framework to deal and handle many critical tasks in testing through QTP.

To know these frameworks in more details you can choose any QTP testing materials.

October 21, 2008

Keyword View of QTP

Filed under: QTP Docs. — Mayank @ 10:23 am
Tags: , , ,

QTP is having two views to access and analyze the test script that is Keyword View and Expert View.

Keyword View helps to display the recorded script in steps or hierarchical format. It is having some default columns which are important to understand the recorded script.

There are four important columns-

Item- It displays the icon based steps that is, you have done while recording the test. It contains window name, object name, function and etc.

Operation- Operation column shows the type of operation which you performed in the items. For examples select, click and etc.

Value- This column shows arguments which you have given while creating your test script and argument value for selected operation.

Documentation- Documentation section will display some short description in simple English about your step or item. It comes automatically.

 

 

QTP Testing Process

Filed under: QTP Docs. — Mayank @ 9:55 am
Tags: , , ,

I assume that peoples are aware about QTP, so I’m directly switched to describe testing process of QTP.

Testing process is nothing but steps which every tester follows to create any test script in this tool.

There are seven steps to complete any test through QTP.

1: Preparing For Recording- In this step, we check that availability of our application and QTP. Basically we just analyze the application test requirements and ensure that tool will be fulfilled the all needs of application test.

2: Recording A Test Scenario- In this steps we just record the user scenario through the tool.

3: Enhance Your Test- In this step we just enhance the test, means, if there is requirement of different function, parameter, checkpoint and etc then we apply all according to test need.

4: Debugging A Test- Debugging a test ensures that create test is not having any bug and it will complete our testing task successfully.

5: Running Your Test- Just run the test in this step against specified application.

6: Analyze The Test Result- After running the test, it will generate some results, which need to analyze and ensure that test is pass or fail.

7: Report Defects- After analyze the result, if there is not meeting with the requirement, just raise the defect against your application.

October 3, 2008

Wireframes

Wireframes, this is new word for me because in my previous works I have not heard and seen about it.

 

It is very useful for tester and developers to understand and analyze the requirements. As definition, Wireframes are a basic visual guide used in web design to suggest the layout of fundamental elements in the interface. As in testing domain, testers develop the some test documents before deliver the code on middle environment. So for develop the test documents testers need to understand and analyze the requirements. Mostly testers get the requirements in word format but if testers get the requirements in visual format also then it will give more and more understanding about the requirements.

 

For more the details about Wireframes go though this link http://en.wikipedia.org/wiki/Website_wireframe

 

September 29, 2008

Quality Center-9.2

There are five major modules which are used to organize and manage the test project.

  • Releases
  • Requirements
  • Test Plan
  • Test Lab
  • Defects

In Quality Center, these are the phases for any test projects.

Releases

For the Releases module, there are two main terms that is-

  • Release
  • Cycle

Release- Release represents a group of changes in the application which will be present in the same application after some duration.

Cycle- A cycle represents a development and QA cycle based on the project time line.

Note- The Release and Cycles have defined start and end date.

Step to define Release and Cycles

Open the QC – Give username and p/w – Select your domain – Select Project – Now login in the QC – Click on Releases button on the sidebar – In the right hand side, select root Releases folder – Click on New Release Folder icon link – New Release folder pop-up comes – Enter Release Folder name ex. ABC – Click OK - Release folder will be added under root Releases folder – Now add sub-folder under ABC – Select created ABC folder – Click New Release icon link – New Release dialog opens – Enter your release name ex. UI – Click OK - Enter Start date, End date and Description for the release – Now the time to add cycle in release folder – Select release folder UI – Click New Cycle icon link – Enter cycle name ex. XYZ – Click OK – Enter Start date, End date, and Description in right side panel.

Requirements

In Requiremnets module we describe that what needs to be tested in the application. There is one important term that is-

Reuirement Tree.

Reuirement Tree- This is a graphical representations of your requirement specification, displaying requirement hierarchically.

Steps to define Project Requirements

 Click on Requirements button on the side bar – Choose View menu – Select Requirement Tree – Create new requirement folder – Select root Requirements folder – Click New Folder icon link – Enter folder name in Create New Requirement Folder ex. Some_Project in dialog box – Click OK button – Requirement folder will be added in requirement tree – Select created folder Some_Project – Click New Requirement icon link – Select Requirement Type (Functional) and in Requirement Name enter “Fucntional Testing” – Click OKNew Requirement dialog box opens – Enter Priority and select your project – Click Submit button – Click Close button – This folder will be added under Some_Project folder – Now add a child requirement – In the requirement tree make sure Functional Testing requirement folder should be selected - Click New Requirement icon link – Select Requirement Type (Functional) and in Requirement Name enter “members” – Click OKNew Requirement dialog box opens – Enter Priority and select your project – Click Submit button – Click Close button – It will be added child requirement under Functional Testing folder – Now assign the requirement to a Cycle – Select your requirement – Choose Requirements - Assign to CycleAssign to Cycle dialog opens - In the release tree, expand the tree and check the checkbox for cycle - Click OK button – Click Yes – Now check the Target Release and Target Cycle in details page.

Converting Requirements

In this functionality, we have to convert all requirements folder tree to Test Plan module. We do this because of similar folder tree in both Requirements and Test Plan modules.

New Company, New People, New Experience and Some Old Memories

Filed under: My Personel View — Mayank @ 9:54 am
Tags:

This is good feeling to leave old space and come in new space because it gives more pleasure to achieve new milestone but it gives some bad feeling also because of some memories which are related with your old space. May be all peoples are not thinking like that but for me it’s true. Because I have learnt lot personally and professionally from my past and I can’t put curtain on that stuffs and efforts which were given by others on me.

 

Here I’m going to write about that feelings and memories which were started from my first company to this new challenge.

 

When I was entering in my new space, my last steps which was leaving from my previous space, said that “Go Dude and break your new challenge”. This word has given me more courage and pushed me in new environment. There were everyone unknown and unrecognized by me and off course, they don’t know me also. Hope so one day they will recognize me and my efforts.

 

It was the dream comes true when I was taken my place in my new company. Team Leader had come and said that “Hi I’m Sudheer and I’ll go to lead you guys”. He was arranged all the stuffs for me and for some more new jonnies. It is big cubicle where I’m sitting with three more members. They have provided all the stuffs which are required for cubicle and company.

 

System Admin has furnished all the things, from system login ID to all necessary access and software in my system. When I was sited there, everything was going again in my mind that how to sit, how to behave, how to talk, how to present yourself and so many things which I was learnt through different peoples and different situations. Over all the things are fine and giving me more happiness to achieve it.

 

First day in the Qwest, I missed all the things which I got through Apptility and Apptilitians. It was great, when I was written my first mail to my PM, I heard again Avinash’s voice in my ear that “Learn man, How to write mail and if you got then you can survive any orgnizations”. That was the great session. Thanks! Avinash for all the helps and words which you have given me. Nowadays everything is going again in my mind whether that Mr. Brij suggestions, instructions and Moses, Rahul, Abhishek, Amit, Abinaya, Prethesh and Sanjay tips. All the things are giving me more courage.

These are the peoples who have given me more exposure, knowledge and experience of life, which I am going to use here. Thanks to all.

July 29, 2008

Data Driven Testing using Silk Test.

While using Silk Test I was unable to find any easy steps to do data driven through excel files. I read some documents also but I was not able to find any useful result. May be I was novice and not able to understand but I’m still sure, that documents were not delivering easy steps to do DDT through excel.

Here I’m going to listing some easy and clear steps to do Data Driven Test through excel file in Silk Test. I assume that we are familiar with Silk Test windows and flows.

Before describing anything I would like to tell one scenario, where we will do DDT.

We have one search page.
There is one search fields FIND PEOPLE with SEARCH button.
User will come on search page and put the search term in FIND PEOPLE text field.
At last hit the SEARCH button.

So here we will add our DDT.

Step1: Create one excel file with the name of SEARCH.

Step2: Add your search term under Search column.

Note: We assume that you have set-up your project in Silk Test.

Step3: Come in Silk Test window and click Tools menu.

Step4: Select Data Driven Testcase. Remember your test case should be opened in Silk Test.

Step5: It will open Select Testcase dialog box. Select your test case and click OK button.

Step6: It will open Specify Data Driven Script dialog box. Check first radio button “Create a new file/Overwrite an existing file” and hit OK button.

Step7: It will open Select Data Source dialog box. Select Silk DDA Excel option in Select Data Source option field. Now browse your excel file through Browse button and hit OK button after selecting that.

Step8: It will open Specify Data Driven Testcase dialog box. Select first radio button “Add a new Data Driven Testcase” and hit OK button.

Step9: It will open Find/Replace Values dialog. Click Cancel button in Find/Replace Values.

Step10: Come in data driven file which is saved in same test script file name but with the .g.t extension.

Step11: In Data Driven Script file, you can find “Find values of type”, “Replace value with”, Column, and Replace button. If your test data is Text then check Text checkbox. In Table field select Sheet1$ if you enter your test data in sheet 1 in excel file. In Column select column name which you have specified in your excel file. After selecting it you can find Replace button will be enabled.

Step12: Now select values in your DD script, which you want to DD.

Step13: Click Replace button it will replace some code over the values which you have selected.

Step14: Now Save the file and click Run Test Case. It will open Run Test Case dialog. Here select your DD test script and click Run button.

Hope it will be useful for those, who are struggling with DDT in Silk Test.

Next Page »

Blog at WordPress.com.