ENTRYPOINT ["/usr/bin/java", "-cp", "/usr/share/tag/container-test.jar","org.testng.TestNG", "-testclass", "com.testautomationguru.container.test.GoogleTest"]<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>${project.basedir}\src\test\java\net\cal\mycompany\TestNgSuites\${suite.name}.xml</suiteXmlFile>
</suiteXmlFiles>
<properties>
<property>
<name>listener</name>
<value>net.mycompany.test.reporting.AutomationReporting</value>
</property>
</properties>
</configuration>
</plugin>--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ff2bf62e-3fbb-4c69-9196-85a26c6d1b8a%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
Hi Krishnan,
- Why do you want your tests to be part of the docker container in which the tests are to be executed ?
- We have some web applications that are being deployed using Docker containers, and I would like to run my selenium sanity suites after the deployment is done to check app stability etc.and I want to check if this can also be part of docker container and as part of continous delivery cycle of the app.....( right now am managing this seperately using jenkins job which runs on a seperate VM, the job pulls the automation code on manual/schedule trigger of the job and it gets build/tests with maven..)
- I was under the mindset that once you create a docker image , you can pull this image (make it available) in any machine where docker is running...and we should be able to run that image in that machine when ever we want...and while docker runs the image , it should open the browser,load url and executes our scripts etc to test the app... so I was thinking making image is kind of a one time activity and run it always in the docker container....
- You can basically have @BeforeSuite/@BeforeTest/@
BeforeClass/@BeforeMethod configuration methods which can spin off a docker container which runs a selenium standalone instance, to which you have your tests point to and run against (You will need your tests to be modified to use RemoteWebDriver instead of the other flavors of webdriver implementations), and in your @AfterMethod/@AfterClass/@AfterTest/@AfterSuite, you clean up the docker containers.
- You meant to say we can spin of containers programatically inside the @Before methods of our java class ?
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/970736f1-269d-4999-9454-c30609074c4f%40googlegroups.com.
java -DchromeDriverPath=chromedriver.exe -cp myproject-jar-with-dependencies.jar;myproject-tests.jar org.testng.TestNG -testjar myproject-tests.jar -xmlpathinjar MytestSuite.xml
# Sample Dockerfile
# Indicates that the java:8 image will be used as the base image.
FROM java:8
# Add the jar with all the dependencies
ADD target/myproject-tests.jar myproject-tests.jar
ADD target/myproject-jar-with-dependencies.jar myproject-jar-with-dependencies.jar
ADD target/chromedriver.exe chromedriver.exe
CMD java -DchromeDriverPath=chromedriver.exe -cp myproject-jar-with-dependencies.jar;myproject-tests.jar org.testng.TestNG -testjar myproject-tests.jar -xmlpathinjar MytestSuite.xml
Comments inline