Resume Tools/Technologies Flashcards
How would you execute test runs with TestNG?
After you have created your test classes, you have to create an XML to describe your test suites and their parameters.
You’d then compile the code (using javac) and then execute the test xml:
$java -cp “./workspace” org.testng.TestNG testng.xml
How would you add your automation artifacts to Jenkins?
Jenkins has out-of-the-box support for JUnit.
Typical CI, developers check in code, Jenkins picks it up and executes a build w/ tests, output appears on Jenkins dashboard.
You can start Jenkins locally via:
Java –jar Jenkins.war (http://localhost:8080)
You can configure Jenkins with Tomcat, Maven, Git, etc.
You can create a new project, add a Github location (or specify location for files to build), click Add Build Step, “Invoke Ant”, add the XML location, and then in post-deploy steps do “publish Junit test result report”.