Bobcat is an automated testing framework for functional testing of web applications. It wraps Selenium, so anything possible in raw Selenium can be done with Bobcat, including running it on all supported browsers, Selenium Grid and cloud providers You can also utilize Appium for mobile testing. Bobcat comes with a handy set of utilities and accelerators that will help you develop your tests faster.
Assuming you followed our Selenium Java SDK Tutorial, here are the additional steps you need to take to add Applitools to your Bobcat framework:
-
Add this Maven dependency to your project pom file
<dependency>
<groupId>com.applitools</groupId>
<artifactId>eyes-selenium-java3-jersey1x</artifactId>
<version>RELEASE</version>
<exclusions>
<exclusion>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
</exclusion>
<exclusion>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
</exclusion>
<exclusion>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
</exclusion>
</exclusions>
</dependency> - Get the (wrapped) webDriver from Bobcat to be used when calling eyes.open :
WebDriver wrappedDriver = ((EventFiringWebDriver)webDriver).getWrappedDriver();
- Run your script.
Comments
0 comments
Article is closed for comments.