Java, Selenium, TestNG Framework, and test automation execution environment.
QA Touch API endpoints connect with Selenium Webdriver, which creates robust, browser-based regression automation suites and tests, scales and distributes scripts across many environments, and syncs your automation test results to QA Touch. The steps are below:
Java, Selenium, TestNG Framework, and test automation execution environment.
We will see how to set up the syncing of test results of the sample automation project, Selenium, Java, and TestNG framework to QA Touch. The screenshots and the execution steps mentioned in the article are based on Eclipse IDE. Download the sample project from the Github repository from Selenium Java - TestNG - QA Touch Integration Sample and import it into your test automation environment. Execute the test and ensure without any errors because of the environment changes.
Next, we are going to set up the synchronization of the test results process. The steps are below:
- Login in QA Touch.
- Click the Project in which you want to sync the test automation results.
- Create a test run for the test automation execution.
- In this sample project, we have a single test case. Add the test case code from QA Touch. For example, it is TC0001.
- Go to your sample test automation project, open the test script file, and update the value for the variable run_result_tc_id with your test case ID. For example, if your test case ID is TC001 then update the value as run_result_tc_id="1"; and Save it. The snippet will look like below:
@Test public void isSearchExist() { run_result_tc_id="1"; boolean flag = driver.findElement(By.name("q")).isDisplayed(); Assert.assertTrue(flag); }