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.
Please see the below Selenium Java - TestNG - QA Touch Integration Git clone command execute your test automation environment. Execute the test and ensure without any errors because of the environment changes.
git clone git@github.com:qatouch/seleniumTestngFramework.git
cd seleniumTestngFramework
Next, we are going to set up the synchronization of the test results process. The steps are below:
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);
}