By continuing to use our website, you consent to the use of cookies. Please refer our cookie policy for more details.

    Frequently asked questions on the Selenium Hybrid Framework

    Q. Why have we created XSLT reports instead of using TestNG reports alone?
    TestNG reports are not easy to understand and are technical in nature. XSLT reports are more user friendly and interactive if these reports are to be shared with the clients or managers.
    Q. How to run all the Test scripts in a suite and access TestNG reports?
    Test scripts can be run in a suite by following these steps: Go to ‘testing.xml’ file and right click on it. Select the option as ‘Run As TestNG Suite’. TestNG reports can be accessed by going into test-output folder and opening theindex.html file in the browser by giving its path.
    Q. Can we run the script without using eclipse or ant?
    Yes, we can run the script without using eclipse or ant by creating a bat file by following these steps: Open a notepad file. Mention the path of the project stored on your hard drive. Write the commands as “ant clean compile run makexsltreports”. Refer to the following example: cd D:\marketo_auto_lat\Grazitti_Hybrid_Framework_Version4 ant clean compile run makexsltreports Save it in double quotes as "TEST_SUITE.bat" Once it gets saved, we can run the script by double clicking on this bat file.
    Q. How to generate XSLT reports?
    Follow these steps to generate XSLT reports Import two jar files assaxon.jar&saxliason.jar. Open the command line interface. Mention the path of the project. Write ant commands for compiling the code, executing the test scripts and generating xslt reports. Refer the following commands to be written inside command line interface: cd D:\marketo_auto_lat\Grazitti_Hybrid_Framework_Version4 ant ant compile ant run antmakexsltreports Refresh your project. Two new folders will be created as‘XSLT_Reports’ and ‘build’. Openindex.html file in a browser by going into XSLT_Reports folder, you’ll see the XSLT reports.
    Q. What type of keywords we can use in this framework?
    There are two kinds of keywords we can use: Generic keywords: These keywords can be applied to any application like clicking on an element, entering text in a text box, selecting a drop down list etc. Application specific keywords: These keywords are specific to an application under test like verifying a login process, extracting the text of specific elements in a webtable etc.
    Q. Are we storing screenshots in case ofTest script failure?
    Yes, in case any of the Keywords fail written in the script, a screenshot corresponding to that gets stored in the screenshots folder.
    Q. How to use TestNG in eclipse?
    TestNG can be installed by following the steps as: In Eclipse, go to Help tab and select ‘Install New Software’ option. In the ‘Work with’ field, enter the URL as ‘http://beust.com/eclipse'. Once you'll get TestNG option, select it and click finish. To verify whether it has been successfully installed, check TestNG option by selecting the Show view option under Window tab.