• Latest
  • All
  • News
  • Business

Best Practices in QTP Automation

Nov 7, 2016
Can a VPN Service Help Your Business?

Protecting Yourself Online in 2023

Nov 28, 2023
Starting Your Business in Delaware

Opening Your Own Business: A Guide on Getting Started

Nov 28, 2023
3 Key Emerging Tech Trends in Modern Business

3 Key Emerging Tech Trends in Modern Business

Nov 28, 2023
Operator Connect: Revolutionizing Business Communications

Operator Connect: Revolutionizing Business Communications

Nov 28, 2023
Top 3 Safest Used Cars to Buy in 2020

Fleet Management Strategy: How Services Manage Operational Costs And Risks

Nov 21, 2023
Why Should You Use a Cloud-Based Translation Solution?

Why Should You Use a Cloud-Based Translation Solution?

Nov 21, 2023
Six Careers You Can Pursue with a Digital Transformation Degree

Six Careers You Can Pursue with a Digital Transformation Degree

Nov 15, 2023
VR Escape Rooms – An Evolution In The History Of Mankind

5 Top Industries that Benefit from Virtual Reality Software

Nov 15, 2023
Can a VPN Service Help Your Business?

Network Security: Ensuring a Safe and Secure Online Experience

Nov 8, 2023
Core SEO Tactics and their Benefits

Web Saturation Dilutes Success

Nov 6, 2023
How Do You Start an eCommerce Business on Amazon?

10 Tips to Boost Your E-Commerce Business

Nov 2, 2023
Furniture Renders: 5 Reasons Why You Can’t Distinguish Them from Photos

Furniture Renders: 5 Reasons Why You Can’t Distinguish Them from Photos

Oct 31, 2023
  • Guest Posts
  • Advertise
  • Contact Us
  • Privacy Policy
Sunday, December 3, 2023
Tech Featured
  • Home
  • Latest Tech
  • Apple
  • How to’s
  • Apps
  • Automobiles
  • Gadgets
  • Gaming
  • Reviews
  • Tech Tips
No Result
View All Result
No Result
View All Result
Tech Featured
No Result
View All Result
Home News

Best Practices in QTP Automation

by techfeatured
Nov 7, 2016
in News
0
0
SHARES
7
VIEWS
Share on FacebookShare on Twitter

[ad_1]

  • Start your automation work only when AUT (Application Under Test) is stable. i-e You should have completed initial round of manual testing before starting QTP automation task.
  • Use reusable actions wherever possible.
  • Don’t copy and paste checkpoints when you wish to check same thing in more than one places. Instead, create separate checkpoints. Because manipulating checkpoints in QTP is not feasible or it will be difficult.
  • Open browser/application after opening QTP.
  • Your vbscript functions should not have any hard coded object names, the name of the objects should be passed as function argument.
  • Use Shared Object Repository. My suggestion is don’t use DP (Descriptive Programming) which will increase your maintenance work.
  • Before adding any object to Object Repository, set up appropriate object identification properties (in Tools->ObjectIdentification) if you feel that default identification properties are not suitable for you application. If you do it after adding some objects to the Object Repository then you may face issues related to having multiple Test objects in Object Repository for a single actual Object.
  • Open QTP using Automation object model. You can do it just by writing (even you are having ‘generate script’ option in the QTP IDE itself) simple .vbs file, and then open QTP just by double clicking this .vbs file. It is very very essential if you are developing your scripts in one machine/environment and planning to run/execute it in another environment. By using Automation Object model we are making sure that all the IDE settings (e.g Object identification properties) that are changed in development environment are propagated to the execution environment also
  • Always use Reference/Relative path when calling any external reusable action instead of using absolute/full path, Otherwise the script will fail when placing it in different path.
  • Remember to take backup of Object Repositories before merging object repositories.
  • Put proper inline comments and also put summary comments (description, input & output parameters,dependency, author) at beginning of the Test. In the comments remember to mention about execution/data flow.
  • Rename the Objects in Object Repository to have proper meaning for them. Because the default name given by adding the objects by recording or manually may not be good/meaningful.
  • Give attention to synchronization (i-e use of sync,waitproperty, exist). And also use regular expression wherever required. Otherwise consistency of script execution will be affected.
  • Use recovery scenario to handle any unexpected behaviour (e.g showing pop-up windows sometimes) of the application.

[ad_2]

Tags: androidapple iphonetechnology news
ShareTweetShareSendShare

For any queries, you can reach us at [email protected]

Latest Posts

  • Protecting Yourself Online in 2023
  • Opening Your Own Business: A Guide on Getting Started
  • 3 Key Emerging Tech Trends in Modern Business
  • Operator Connect: Revolutionizing Business Communications
  • Fleet Management Strategy: How Services Manage Operational Costs And Risks
Tech Featured

© 2022. All Rights Reserved.

Navigate Site

  • Guest Posts
  • Advertise
  • Contact Us
  • Privacy Policy

Follow Us

No Result
View All Result
  • Home
  • Latest Tech
  • Apple
  • How to’s
  • Apps
  • Automobiles
  • Gadgets
  • Gaming
  • Reviews
  • Tech Tips

© 2022. All Rights Reserved.