A new version of Qualitia Automation Studio for Web and Mobile 7.2.x is now available. We highly recommend you upgrade. Find more details here.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Procedure

      1. The project in which the Custom Actions are written, the TestHarness.java should be written in the same project. Make sure that TestHarness.java is in the default package only. This project must contain the references of the below jar files and any other jar files that may have been used.
  • junit-4.8.1.jar
  • mysql-connector-java-5.1.6-bin.jar
  • log4j-1.2.17.jar
      1. The TestHarness.java should be written as follows:
    1. Create an array of type String of size 10.
  1. If the debugging is to be done for Chrome browser then size of this string array should be 11.
  2. Enter the String Array with the following information.
    1. Qualitia Project Name (Do not suffix it with_projectDb) – String
    2. Qualitia User Name –String
    3. Qualitia Release Number –String (Default is 7.01)
    4. Qualitia Build Number –String (Default is 5.01)
    5. Qualitia Config File path (QualitiaInstallationFolder/Qualitia.exe.config) –String
    6. Qualitia Reporter Path (QualitiaInstallationFolder/Common/Reporter) –String
    7. XML Path (Refer the key xmlPath in the Qualitia.exe.config file) –String
    8. Is Offline – (Set this to false) –String
    9. Set Selenium browser type
    10. Is Dry Run – (Set this to false) –String

If Google Chrome is the browser type then chromedriver path needs to be given.
Refer the key Chrome Driver Path set in the Qualitia Configuration file.

      1. Call the static method of the callController class. Pass the String Array created in step b.

For example, callController.main (String Array)

      1. Insert a debug point in the Custom Actions.
      2. Debug the Test Harness in Eclipse. The debug point in the Custom class should be inserted.
      3. Sample TestHarness.java is present in the <QualitiaInstallationFolder\Help Folder>. 
  • No labels