Monday, 4 November 2013

Explain the HP QTP Tool interface

 HP QTP 11.0 contains the following key elements:
·   Title bar, displaying the name of the currently open test
·   Menu bar, displaying menus of QuickTest commands
·   File toolbar, containing buttons to assist you in managing tests
·   Test toolbar, containing buttons used while creating and maintaining tests
·   Debug toolbar, containing buttons used while debugging tests.

Note: The Debug toolbar is not displayed when you open QuickTest for the first time. You can display the Debug toolbar by choosing View > Toolbars > Debug.

·   Action toolbar, containing buttons and a list of actions, enabling you to view the details of an individual action or the entire test flow.

Note: The Action toolbar is not displayed when you open QuickTest for the first time. You can display the Action toolbar by choosing View > Toolbars > Action. If you insert a reusable or external action in a test, the Action toolbar is displayed automatically.

·  Test pane, containing two tabs to view your test-the Tree View and the Expert View Test Details pane, containing the Active Screen.
·  Data Table, containing two tabs, Global and Action, to assist you in Parameterzing your test Debug Viewer pane, containing three tabs to assist you in debugging your test-Watch Expressions, Variables, and Command. (The Debug Viewer pane can be opened only when a test run pauses at a breakpoint.)
·  Status bar, displaying the status of the test.

What is QTP testing process

QuickTest testing process consists of 7 main phases:
1.  Create your test plan - This is preparatory phase where you identify the exact test steps, test data and expected results for you automated test. You also identify the environment and system configurations required to create and run QTP Tests.
2.  Recording a session on your application - During this phase, you will execute test steps one by one on your AUT, and QTP will automatically record corresponding VB script statements for each step performed.
3. Enhancing your test - In this stage you will insert checkpoints, output values, parametrization  programming logic like if…else loops to enhance the logic of your test script.
4. Replay & Debug - After enhancements you will replay the script to check whether it’s working properly and debug if necessary.
5.  Run your Tests - In this phase you will perform the actual execution of your Test Script.
6.  Analysing the test results - Once test run is complete, you will analyse the results in the Test Fusion report generated.
7.  Reporting defects - Any incidents identified needs to be reported. If you are using Quality Centre, defects can be automatically raised for failed tests in QTP.

Wednesday, 30 October 2013

How to Install TestNG in Eclipse

  • Open Eclipse
  • Go to Help – Install New Software – Click Add
  • In Add Repository box, type TestNG and type the URL http://beust.com/eclipse
  • TestNG plugin will added into Available Software List.
  • Click on Next and follow the installation screen to complete the setup
  • Restart Eclipse and go to Run menu and open Run Configurations

Thursday, 24 October 2013

Hybrid (Keyword + Data) Framework using Selenium WebDriver, JXL API, Log4J

Selenium Test Framework is a test automation framework, is developed using WebDriver, JXL API, LOG4J and MS Excel. It has following features -

  1. Hybrid (Keyword + Data) Framework
  2. Firefox browser testing
  3. Data Driven testing using XLS file, write one test method against multiple test data sets
  4. Well defined Tear Down feature, which provides ability to continue with test execution even in test failures/application crash
  5. HTML Test Report
  6. Test Script creation in XLS File
Visit link https://drive.google.com/file/d/0BypxAnZwsvAcYlVCajhMME5paWs/viewDrop a message if you want to download framework code.



Wednesday, 2 October 2013

What is the difference between Browser and Page

Browser and Page are two different type of objects. A browser is a topmost level object for a website. and a page comes one level below it... One Browser object can have multiple pages inside it.