Test Project SDK integration with Selenium Java in Easy Steps

Test Project SDK integration with Selenium Java in Easy Steps

Test automation with Selenium Java is widely used and test automation reporting is a vital component in test automation framework. This article will help everyone to integrate fascinating cloud based test automation execution report integration with Test Project SDK.

  1. First of we need to get register with Test Project website, with the following URL

2. Next we need to download the Test Project Agent from the Agents menu of the portal

No alt text provided for this image

3. The agent will run on the following default URL - https://localhost:8585/

No alt text provided for this image

4. Add the following dependency to your pom.xml file

?<dependency
? <groupId>io.testproject</groupId>
? <artifactId>java-sdk</artifactId>
? <version>1.2.3-RELEASE</version>
</dependency>>        

5. Next call the following library in your test automation script if you are going to start with Chrome browser.

import io.testproject.sdk.drivers.web.ChromeDriver;        

6. Next initialize the Webdriver driver with the following command

?ChromeDriver chromeDriver = null;

chromeDriver = new ChromeDriver(new ChromeOptions());        

7. Start your test with TestNG and your test will get executed with Chrome also you will see that your test getting executed in the Execution in Progress area.

No alt text provided for this image

8. Once its done we can access the report of the execution in the latest executions area.



No alt text provided for this image

9. By clicking on the graph icon you can go to the execution report page.

No alt text provided for this image


9. By clicking on the graph icon you can go to the execution report page

No alt text provided for this image

10. You can download the latest PDF detailed report with the click on the Full Report link

No alt text provided for this image


要查看或添加评论,请登录

Kushan Shalindra Amarasiri的更多文章

社区洞察

其他会员也浏览了