Thursday, August 28, 2014

Automation of Web-based Apps using Groovy

What is Groovy?

Groovy is a modern, dynamic, general-purpose scripting language that runs on the Java Virtual Machine (JVM). Its based on Java and is considered a superset of Java, however it has some differences. It inter-operates with other Java code and libraries.

The below link give a kick start to the language:

Download Groovy

There are many ways to test Web Applications with Groovy:

use Groovy (potentially in conjunction with a specialist HTML parser) to parse HTML pages as if they were XML
use Groovy to simplify the code required to drive a Java API browser simulator, e.g. HtmlUnit or HttpUnit
use Groovy to simplify the code required to drive a Java API for manually driving a real browser, e.g. IE or Firefox
use Groovy to interact with a higher-level testing library which uses one of the above two approaches, e.g. Watij (for the equivalent of Watir in the Ruby world) or WebTest (to open up the possibility of testing more than just web applications)

Monday, August 25, 2014

Use PHP and SSH to execute command on remote machine

I had a requirement of executing commands on remote machine. I needed to execute commands in both Windows and Linux platforms. There are a wide variety of communication softwares out there who can help you with this. But, I choose SSH as a communication protocol for my requirement.

Linux comes loaded with ssh enabled and for windows we can have cygwin ssh installed. This was perfect, I will have to only configure the windows based OS. 

My requirement was to trigger it using a web page, so i used php for my server processing. After some trial and error - phpseclib worked out great!!

The official link to the tutorial : 

Below code will give you a head start:



echo "\r\n========= Open Communication ==========\r\n";
//Open SSH Communication
$ssh = new Net_SSH2($server);
//$key = new Crypt_RSA();

if (!$ssh->login($username, $password)) {
//if (!$ssh->login($username, $key)) {
    echo "\r\n Error Occured while logging in...\r\n";
    //echo "Username:$username\r\n";
    //echo "Password:$password\r\n";
echo "\r\n Successfully Opened SSH Communication...";

$cmd = "your_command";
$arg1 = "your_arg_1";
$command = 'perl '.$cmd.' '.$arg1;

//Adding the below code to get proper command return code
$command .= ';echo "[return_code:$?]"';
echo "\r\n". $command;

//Executing the command
$output = $ssh->exec($command);

//Extract Return code
preg_match( '/\[return_code:(.*?)\]/', $output, $match );
$return_code = $match[1];
echo "\r\n". $output;
echo "\r\n".$return_code;

if(($return_code != 0))
echo "\r\n Command Failed";
echo "\r\n Command Pass";

Tuesday, July 19, 2011

Perfecto Mobile : Unveils Fully Integrated Mobile Test Automation Solution for HP QuickTest Professional

Perfecto Mobile, provider of the MobileCloud platform for test automation and monitoring of mobile applications and websites, today announced its complete native solution for automated functional and regression testing for mobile applications within the HP QuickTest Professional (QTP) product.

"As mobile applications become business critical, enterprises need automated mobile testing solutions that plug into their existing quality processes," said Eran Yaniv, CEO at Perfecto Mobile. "It is our mission to address these challenges with MobileCloud for QTP, the first mobile test automation solution fully integrated with HP QTP.” MobileCloud for QTP is a fully integrated mobile test automation add-in within HP QTP, combining native QTP scripting and flow control with Perfecto’s cloud-based automated mobile testing solution. The integration enables enterprises to easily extend their functional testing environment to cost-effectively support mobile applications.  

Featuring a single integrated user interface and rich image-enhanced reports, MobileCloud for QTP supports device-agnostic mobile scripting and facilitates collaboration among globally distributed teams. With complete integration with HP QTP, which also tightly links to HP Quality Center, enterprises now have the ability to centralize their test management across the organization and gain visibility into their overall mobile quality management.  

"As smart-phone empowered mobile applications continue to gain momentum, they also bring new challenges to organizations to manage application development and testing costs,” said Jonathan Rende, general manager and vice president, Applications, Software, HP. "MobileCloud for QTP allows organizations to simplify and scale mobile testing while lowering overall costs, through extended ALM practices and improved collaboration among globally distributed teams.”  

About Perfecto Mobile

Perfecto Mobile is the provider of the MobileCloud platform for test automation and monitoring of mobile applications and websites, utilizing a wide selection of REAL mobile devices accessible via the web. Users can rely on Perfecto Mobile’s handsets and tablets to develop, test, deploy and monitor their mobile apps and services without having to physically obtain them.
For further information about Perfecto Mobile, please visit

src :

Friday, June 3, 2011

QC Integration : JIRA Bridge for HP Quality Center

Orasi Software’s JIRA Bridge for HP Quality Center is a solution that enables companies to harness the full potential of Atlassian’s JIRA and HP Quality Center software by synchronizing defect and requirement information between the two tools. The bridge enables a true collaboration between software quality assurance and development teams by seamlessly coordinating information between your teams, while offering your development and software quality assurance (QA) teams the flexibility to use the tools that best fit their needs.

Effective communication between teams is critical to overall quality and efficiency in the development process. The JIRA Bridge for HP Quality Center manages information sharing by automatically creating issues when test cases fail during test cycles. Without placing an extra burden on your team, the tool also enables you to gather metrics on your round-trip issue resolution process to drive the stability and reliability of release cycles.

To ensure that your software quality assurance team is in sync with your development team, there is no better solution than the JIRA Bridge solution.

  • Based on standard integration platform provided by HP’s Quality Center Synchronizer
  • Graphical Administrator console for managing integration schedule, rules and field mappings
  • Graphical Integrity reporting to ensure integration rules are correct – every time
  •  Bi-directional synchronization of issue data between JIRA v3.11 and later (including v4.2) and HP Quality
    Center 11.0, 10.0, 9.2 or 9.0
  • Supports customized JIRA Workflow definitions and multi-workflow environments
  • Provides a standard Windows installer that automatically installs and configures your integrated
    environment in minutes
  • Supports multiple mapping of many JIRA projects to one physical HP Quality Center project
  • Customizable business rules to define field mappings between JIRA and HP Quality Center
  • Synchronizes document attachments between JIRA and HP Quality Center
  • Data value translation between systems (e.g., QC Status New = JIRA Status Open)
  • Advanced logging and email notification
 For more information about the JIRA Bridge for HP Quality Center, please click here

Monday, May 23, 2011

Migrating From HP Mercury QTP To PushToTest TestMaker 6

TestMaker is the leading open source alternative to HP Mercury tools (Load Runner, QuickTest Professional, Quality Center.) TestMaker provides immediate compatibility with thousands of new Web objects in Rich Internet Applications (RIA, using Ajax, Flex, Flash) without any test coding. Then repurpose test objects to be functional tests, load and performance tests, and production monitors.

PushToTest TestMaker- The Single Platform for Functional Testing, Regression, Load and Performance Testing, and Business Service Monitoring 

Evolving business requirements, as well as ongoing technology innovations, drive change in every aspect of the software development industry. Organizations are shifting their IT architecture towards Rich Internet Applications (RIA) and SOA. They are updating their internal methodologies to become more agile. These changes create new challenges for their internal IT operations departments. To keep pace and succeed in this environment requires new test tools and methodology. PushToTest believes four qualities are needed to be successful in constructing, testing, and monitoring modern software and services: 


The TestMaker platform provides:  

  • Repurposing to Accelerate Application Time-To-Delivery: Saving Time, Money, and Test Maintenance A single platform for Functional Testing, Regression, Load and Performance Testing, and Business Service Monitoring, all from the same single test script. Pass smoke tests, surface performance bottlenecks, and enforce Service Level Agreements (SLAs) in one product.

  • The Fastest Way To Surface Problems TestMaker's unique correlation technology surfaces the root cause to performance problems and mitigation. TestMaker correlates observations of Threading, Database connection, memory, network, and CPU utilization in your Java application server to the specific load and performance tests running at any given time. In a single product TestMaker performs load generation and root cause analysis from application front-end to the back-end.

  • Immediately Ready For The Modern World
    Rich Internet Applications (RIA, using Ajax, Flash, Flex,) Service Oriented Architecture (SOA,) Web services, and REST

  • Easy To Build Tests, Easy To Operate Tests
    Record/Playback for Web applications, Graphical tool to build tests for SOAP/REST applications, plus powerful support for unit tests written in Java, Jython, Ruby and dynamic scripting languages.

  • Experts To Save You Time And Money
    The fastest way to get started: The PushToTest Proof Of Concept (POC) built with TestMaker. For example, one recent POC test took just 4 days from start to results.

Attend live workshop, Frank Cohen, CEO and Founder at PushToTest :

 For more info :

Monday, December 6, 2010

QTP support for 64bit apps

Below is the information that is published in the HP support site about the 64-bit App and OS support :

64-bit application support
Using QuickTest Professional version 10.0 and below to test 64-bit applications is not supported. QuickTest Professional supports testing on applications based on Win32 API and MFC. QuickTest Professional version 11.0 supports test particular techonologies on 64-bit applications after installing patch QTP_00699.

64-bit operating system support
QuickTest Professional 10.0 and 11.0 supports:
  • Windows XP 64-Bit Edition—Service Pack 2/Service Pack 3
  • Windows Server 2003 64-Bit Edition—Service Pack 2
  • Windows Server 2003 R2 64-Bit Edition
  • Windows Vista 64-bit Edition—Service Pack 1
  • Windows Server 2008 64-Bit Edition (*)
  • Windows Server 2008 R2 Edition (*)
  • Windows 7 64-Bit Edition (*)
Note(*): These environments require patches QTP_00626 and QTP_00644
For more information see Document ID KM744522 - QuickTest Professional 10.0 Product Availability Matrix and Document ID KM543959 - QuickTest Professional 10.0 Readme
QuickTest Professional 9.5 supports:
  • Windows XP 64-Bit Edition—Service Pack 2
  • Windows Server 2003 64-Bit Edition—Service Pack 2
  • Windows Vista 64-bit Edition or Windows Vista 64-bit Edition—Service Pack 1
  • Windows Server 2008 64-Bit Edition
Note: For more information see Document ID KM480579 - QuickTest Professional 9.5 Readme
QuickTest Professional 9.2:
QuickTest Professional 9.2 supports Windows XP 64-Bit Edition-Service Pack 1 and Windows 2003 64-Bit Edition. Note: For more information see Document ID KM18464 - QuickTest Professional 9.2 Readme
QuickTest Professional 9.0/9.1 supports:
QuickTest Professional 9.0/9.1 supports Windows XP 64-Bit Edition-Service Pack 1, Windows Server 2003 32-Bit Edition-Service Pack 1, or Windows Server 2003 R2 (32-Bit x86). Windows 2003 server 64-bit is not supported.
QuickTest Professional 8.2 (and below):
QuickTest Professional 8.2 (and below) does not support 64-bit operating systems. 


HP releases patch (QTP_00699) to support 64-bit Applications in Windows 7

Download :

Installation instructions

Please review all instructions and the Hewlett-Packard 
SupportLine User Guide or your Hewlett-Packard support terms
and conditions for precautions, scope of license, 
restrictions, and, limitation of liability and warranties,
before installing this patch.
1. Back up your system before installing a patch.

2. Execute the patch:


During the installation, if you select to save the original
files, those files will be copied to the directory
e.g. "C:\OpenView\Patches\QTP_00699\orig"

Wednesday, December 1, 2010

TFS Bug Item Synchronizer 2.0 for Quality Center

Next major version of popular TFS Bug Item Synchronizer for Quality Center is now released.
TFS Bug Item Synchronizer is an tool which allows testing and development teams to work together using tools built for their usage. Testers enter defects in Quality Center and when defect is created and updated into TFS, developer can fix it, link all changes to it and mark it as fixed. After this the tester will continue process on Quality Center side to verify the fix. Similar to this developer can create a work item and have it synchronized over to Quality Center for testers to verify the fix.
With this tool it is possible to synchronize both Quality Center Defects and Requirements with TFS work items.
Testers will only need to use Quality Center and developers TFS, no need to have both applications on both teams as this tool works totally on the server side.
This version supports
  • Quality Center 10.0
  • Quality Center 9.2 
  • Quality Center 9.0
  • Quality Center 8.2
  • TestDirector 8.0
  • Team Foundation Server 2005
  • Team Foundation Server 2008 SP1
Major new features include following:
  1. Conflict resolution for cases where both Quality Center and TFS items have changed. This resolution works field by field.
  2. Added possibility to synchronize TFS work items with Quality Center Requirements
  3. Support for Quality Center Release and Cycle –fields on both Defect and Requirement section
  4. Support for multiple TFS servers
Full Release Notes can be found in here: TFS Bug Item Synchronizer Release Notes.
TFS Bug Item Synchronizer 2.0 for Quality Center can be downloaded from Download section in this site.
Installation includes 14 days fully functional trial version, full version can be purchased from here.

QTP 11 - What's New - New Features

HP QTP 11 - What's New??

Download Now!!

XPath and CSS based object identification :Identify objects not only using normal object identification but with XPath and CSS identifier properties.

The new improved results viewer provides an executive summary page with summary data, pie charts and statistics for both the current and previous runs and a quick link to the previous run results.

You can now create reg ex with the help of syntax hints. Regular Expression Evaluator is available to test regular expressions that you have created.

Identify objects not only in relation to each other but in relation to neighboring objects. Objects identified with ordinal identifiers are good only as long as they maintain their relative positions with respect to each other in the new build of application. In case if this position changes or gets interchanged, ordinal identifiers may go for a toss. HP has now introduced Visual Relation Identifier

With the help of LoadFunctionLibrary statement, you can now load a function library when a step runs instead of at the beginning of a run session.

Since QTP is integrated with Service Test, you can now test your GUI and non-GUI based apps in a single run.

Record Support For FireFox is now available.

QTP 11 is capable of receiving Java or .NET log framework messages from your application which can then be embedded in the run results.

You can use the new EmbedScript/EmbedScriptFromFile and RunScript/RunScriptFromFile functions to embed JavaScripts in all loaded browser pages. You can use these scripts to perform operations on, or retrieve data from, the browser pages in your application.

QTP 11 now supports Web 2.0 Toolkit Applications out-of-the-box similar to any other add-ins

You can instruct QTP 11 to automatically parameterize test steps at the end of record session.

Silverlight Add-in To test objects in Silverlight 2 and Silverlight 3 applications. [After installation, Silverlight Add-in is displayed in the Add-in Manager as a child add-in under the WPF Add-in]

You can use WPF and Silverlight Add-in Extensibility SDK to develop support for testing third-party and custom WPF and Silverlight controls that are not supported out-of-the-box

Useful for concurrent license users. With redundant license servers you can create failover, so that if your main license server fails, your remaining servers maintain availability of your licenses without causing any downtime or loss of licenses for users.


Wednesday, September 8, 2010

HP Quality Center - Agile Accelerator

The HP Quality Center Agile Project Accelerator is a complete solution to help manage Agile development projects with the following features:

  •  Ability to manage both Agile development efforts and testing efforts within the same Quality Center project
  •  Pre-built process workflows and rules to guide Agile processes 
  •  Easy to configure pre-built Agile user roles and related privileges
  •  Agile reports and graphs to track progress, such as Burn-down, Burn-up and velocity graphs 

The Agile Accelerator can be imported into Quality Center as a base project with pre-defined Agile workflows, configurations and rules to start managing the Agile methodology driven projects out of the box. The pre-built content helps accelerate the development effort and testing efforts within the same Quality Center project.

Demo Video:

article src:^1131_4000_100__