Resume Tools/Technologies Flashcards

1
Q

How would you execute test runs with TestNG?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How would you add your automation artifacts to Jenkins?

A

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”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly