Very best Methods in QTP Automation

0
18
Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

  • Start off your automation work only when AUT (Application Underneath Examination) is secure. i-e You ought to have accomplished original spherical of manual screening prior to starting QTP automation task.
  • Use reusable actions wherever possible.
  • Do not duplicate and paste checkpoints when you desire to verify exact thing in much more than a person spots. As an alternative, generate separate checkpoints. Due to the fact manipulating checkpoints in QTP is not feasible or it will be hard.
  • Open browser/software following opening QTP.
  • Your vbscript functions should really not have any difficult coded item names, the title of the objects need to be passed as functionality argument.
  • Use Shared Object Repository. My recommendation is really don’t use DP (Descriptive Programming) which will increase your upkeep function.
  • Right before adding any object to Object Repository, set up acceptable object identification properties (in Equipment->ObjectIdentification) if you really feel that default identification attributes are not acceptable for you application. If you do it just after including some objects to the Object Repository then you may perhaps encounter issues similar to owning multiple Examination objects in Object Repository for a one precise Object.
  • Open up QTP employing Automation object model. You can do it just by creating (even you are possessing ‘generate script’ possibility in the QTP IDE alone) basic .vbs file, and then open up QTP just by double clicking this .vbs file. It is very very critical if you are producing your scripts in just one machine/natural environment and setting up to run/execute it in an additional setting. By making use of Automation Object design we are creating confident that all the IDE settings (e.g Item identification homes) that are changed in progress natural environment are propagated to the execution natural environment also
  • Usually use Reference/Relative route when contacting any external reusable motion in its place of employing complete/total route, Otherwise the script will fall short when putting it in distinctive route.
  • Keep in mind to consider backup of Item Repositories ahead of merging item repositories.
  • Place proper inline reviews and also set summary responses (description, enter & output parameters,dependency, writer) at commencing of the Take a look at. In the comments recall to mention about execution/data stream.
  • Rename the Objects in Object Repository to have suitable which means for them. Mainly because the default identify offered by including the objects by recording or manually may not be excellent/significant.
  • Give notice to synchronization (i-e use of sync,waitproperty, exist). And also use standard expression wherever needed. Usually regularity of script execution will be afflicted.
  • Use restoration situation to deal with any sudden conduct (e.g demonstrating pop-up windows at times) of the application.



Source by Rajamanickam Antonimuthu

Don't miss out!
Subscribe To Newsletter

Receive top technical news, lesson ideas, travel tips and more!

Invalid email address
Give it a try. You can unsubscribe at any time.

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

LEAVE A REPLY

Please enter your comment!
Please enter your name here