Wednesday 24 July 2013

What is HP QuickTest Professional or QTP

HP QuickTest Professional is a solution for functional test and regression test automation. This next-generation automated testing solution deploys the concept of keyword-driven testing to enhance test creation and maintenance. Keyword-driven testing is a technique that separates much of the programming work from the actual test steps so that the test steps can be developed earlier and can often be maintained with only minor updates, even when there are significant changes in your application or your testing needs.


Using the keyword-driven approach, test automation experts have full access to the underlying test and object properties, via an integrated scripting and debugging environment that is round-trip synchronized with the Keyword View.

QuickTest Professional meets the needs of both technical and non-technical users. It works hand-in-hand with HP Business Process Testing to bring non-technical subject matter experts into the quality process in a meaningful way. Plus, it empowers the entire testing team to create sophisticated test suites.

Tuesday 23 July 2013

PowerDebug 2.10 – Now a FREE Add-on Debugger for QTP


PowerDebug is a add-on debugger for QuickTest Professional. PowerDebug takes over the QTP debugging IDE and provides a new enhanced with many new features that QTP IDE doesn’t have. Below is the list of features
  1. Debug code loaded using statements ExecuteFile, Execute and ExecuteGlobal
  2. Enhanced error messages with complete stack trace of the error
  3. Pause execution using Assertion points
  4. Enhanced command window with option to execute multiple line command
  5. Enhanced output window with option to save the log to file
  6. Implement Goto statements in code
  7. Jump to any code statement during debugging
  8. Accessing current scope information like FunctionName, Caller function and stack trace

Difference Between Close() and Quit() in Selenium WebDriver

Close() closes the current active browser window.
Quit() closes all browser windows open on desktop.
If only one browser window is open, close() & quit() function works in same way.

How to Do Mouse Right Click Action Through Code

Browser(”Browser”).Page(”Page”).WebTable(”table”).FireEvent “onclick”,,,micRightBtn ‘Right clicking on the object

How to Select Option from Popup After Mouse Rightclick

Code is as follows -

Browser(”Browser”).Page(”Page”).WebTable(”table”).FireEvent “onclick”,,,micRightBtn ‘Right click on the webtable

Set myShell = CreateObject(”WScript.Shell”) ‘create instance of Shell Object

myMenu = 5 ‘Option number from floating menu

For i = 1 To myMenu

        WshShell.sendkeys “{DOWN}” ‘Navigate to the menu item
Next

WshShell.sendkeys “{ENTER}”


Set myShell = nothing