TestArchitect Corner: How to Use Jenkins in TestArchitect

Jenkins is a Continuous Integration (CI) tool that controls repeatable tasks in software development. Check out this guide to see how TestArchitect seamlessly integrates with Jenkins to establish a CI environment for Automated Testing.

With the rising popularity of Continuous Integration/Continuous Delivery (CI/CD), Continuous Testing (CT) is becoming a hot topic for discussion. Knowing that comprehensive tests are running smoothly is highly beneficial for the CI/CD pipeline; but, running tests can be both times- and resource-consuming—not to mention that tests can become boring and rigid! Using the repetitive characteristics of CI/CD and applying them to testing can be a way to address this.

A key component of Continuous Integration (CI) is the frequent running of automated tests to catch potential bugs as soon as they are introduced in the development process. The CI software life cycle involves a process of coding, building, testing, and bug-fixing, often at a rate of several iterations per day.

Most CI systems allow for much of this cyclic process to be automated: Code commits can be set to trigger software builds, build completion can trigger Automated Testing, and test results can be rapidly compiled, processed, and reported to allow bugs to be addressed in the coding process.

TestArchitect supports integration with all CI/CD tools––as long as the tools support command-line interfaces (CLI).

How to Integrate TestArchitect with Jenkins

Jenkins is a Java-based, open-source Continuous Integration (CI) tool that controls and monitors the execution of repeatable tasks in software development. TestArchitect incorporates features that allow it to be readily integrated into a Jenkins-based CI environment.

A typical Jenkins-based CI environment with integrated TestArchitect involves the following components:

  • Software development workstations with a common source control server such as SVN or CVS.
  • A Jenkins master server to manage the CI process.
  • One or more test execution machines. Each machine must be set up as both a TestArchitect controller and Jenkins slave.
  • At least one machine with TestArchitect installed to:
    • Allow for the development of tests in TestArchitect Client,
    • Provide a repository for test-related project items such as test modules and results, and
    • Generate execution batch files for the test controllers.

Note that TestArchitect may be installed on a Jenkins slave, but not on the Jenkins master.

Creating a Batch File

To establish a connection between TestArchitect and a Jenkins server, a batch file that includes executed test modules is required.

1. Select a test module or test folder for execution, then click Execute on the toolbar.

2. In the Execute Test dialog box, click the Advanced Settings tab.

3. Select the Export result(s) to xUnit checkbox.

4. Click to specify the path where the XML file is to be saved.

5. In the Open dialog box, specify the path to the Jenkins slave workspace.

  • Note:
  • The Jenkins master machine is responsible for controlling and monitoring executed jobs on slave machines.
  • Jenkins slave machines are responsible for executing jobs.

6. Click Open.

  • The specified installation path now appears in the Select a destination folder text box.

7. Click Generate Batch File.

  • The Creation of a batch file complete message appears, letting you know that the batch file creation was successful.

Importing the Batch File

1. On the Jenkins dashboard, select New Job.asd

2. Enter a Job name and select a project category.

3. Click OK.

  • The Config page appears.

4. In the Build section, click the Add build step.

5. In the drop-down list, select Execute Windows batch command.

6. Enter the path to the batch file in the Command text box.

  • Note: The batch file must be stored on the Jenkins master machine. You must copy the generated batch files on the Jenkins slave machines and paste them into the Jenkins master machine.

7. In the Post-Build Actions section, click Add post-build action.

8. In the drop-down list, select Publish JUnit test result report.

9. Enter *.xml into the Test report XMLs text box to specify that all XML files related to executing test modules are to be selected.

10. Click Save.

TestArchitect Support Team
We are the TestArchitect Support team who will help you achieve Automation success. Creating a few dozen automated test cases is easy. Maintaining them overtime while scaling your test suite to thousands of tests is not. It needs the right mix of tools, methods, and expertise.

The Related Post

We’re celebrating the 1st birthday of our Agile eBook! It has been one year since we launched our eBook on Agile Automation. To celebrate, we’ve updated the foreword and included a brand new automation checklist! As we take the moment to mark this occasion, we wanted to take some time to reflect on the State ...
LogiGear Magazine – January 2011 – The Test Automation Issue
I recently came back from the Software Testing & Evaluation Summit in Washington, DC hosted by the National Defense Industrial Association. The objective of the workshop is to help recommend policy and guidance changes to the Defense enterprise, focusing on improving practice and productivity of software testing and evaluation (T&E) approaches in Defense acquisition.
A short-list of selection criteria and popular automation tools. There are a lot of test automation tools available in the market, from heavy-duty enterprise level tools to quick and dirty playback-and-record tools for browser testing. For anyone just starting their research we’ve put together a short list of requirements and tools to consider.
Utility: A program that performs a specific task related to the management of computer functions, resources, or files, as password protection, memory management, virus protection, and file compression. Tool: A program or application that software development teams use to create, debug, maintain, or otherwise support other programs and applications. The term usually refers to programs that can be combined together ...
How to do UI test automation with the fewest headaches I’m currently interviewing lots of teams that have implemented acceptance testing for my new book. A majority of those interviewed so far have at some point shot themselves in the foot with UI test automation. After speaking to several people who are about to do ...
This book isn’t for everyone, but everyone can get some value out of it. What I mean by that rather confusing statement is that folks working in Agile environments will likely want to throw the book across the room while folks in more bureaucratic environments like CMMI or other waterfall environments will likely get a ...
Recently while teaching a workshop on Testing Dirty Systems, I uttered this “Randyism” off the top of my head, “Test automation is not automatic.” I realized immediately that I had just concisely stated the problem in making test automation a reality in many organizations. Most testers know that test automation is not automatic. (Wouldn’t it be great?) However, ...
Picture a series of sprints: There are a variety of features being developed, with an eye towards having automated tests related to those features. Work starts to move along and Test Automation work likewise goes along with it. However, at some point, there invariably is that moment, usually in the middle of the project, where ...
LogiGear Magazine – The Big Testing Issue – April 2012
Test automation can provide great benefits to the software testing process and improve the quality of the results…. but its use must be justified and its methods effective. The reasons to automate software testing lie in the pitfalls of manual software testing… As we all know too well, the average manual software testing program:
How lagging automotive design principles adversely affect final products. Cars are integrating more and more software with every model year. The ginormous screen introduced by Tesla in their flagship Model S a few years ago was seemingly unrivaled at the time. Nowadays, screens of this size are not only commonplace in vehicles such as the ...

Leave a Reply

Your email address will not be published.

Stay in the loop with the lastest
software testing news

Subscribe