Skip to content

Steps To Add TestSuite

Vishal Pawar edited this page Sep 2, 2020 · 7 revisions

Adding and Running "Test Suite" in BusinessWorks

Introduction

This document provides steps to add and Run the Test Suite in BusinessWorks 6.6.1 with BW Maven Plugin 2.7.0. The Test Suite feature provides functionality to run set of test cases while running the "test" goal.

Pre-requisites

• Apche Maven: https://maven.apache.org/download.cgi
• BusinessWorks Installer BW 6.6.1 /BWCE 2.5.3
• BusinessWorks Maven Plugin 2.7.0 – https://github.com/TIBCOSoftware/bw6-plugin-maven/releases

Adding Test Suite

This section assumes you have already added the unit testing for the BW Project in BusinessWorks. Please refer "Adding Unit Tests Assertions" section from https://github.com/TIBCOSoftware/bw6-plugin-maven/wiki/UnitTesting to add unit test to BW Project.

  1. Right click on the "Test" Folder and select "New -> Add Test Suite" option.

  2. Provide the name in "Test Suite Name" field in "Test Suite" Wizard.Click "Finish". This Will add Test Suite Editor.

  3. Open the "Test Suite" Editor

  4. To add Test Cases, Click on "Add" button. Select the test case which you want to add in Test Suite.Click "Ok". User can select multiple test cases by clicking the Ctrl+select key.

  5. To remove the test case, select the test case and click on "Remove" button.

Running Test Suite

  1. To run the Test Suite, use property "testSuiteName" to pass the test suite name while running the "test" goal.
    Command -
    test -DtestSuiteName=<Test Suite Name>
    Example -
    test -DtestSuiteName=ActivityAssertionTestSuite.bwts

    User can Run mutiple test suite in sequence by proving the Test Suite names seperate by "/".
    Command :
    test -DtestSuiteName=<Test Suite Name 1>/<Test Suite Name 2>
    Example :
    test -DtestSuiteName=ActivityAssertionTestSuite.bwts/FaultTestSuite.bwts

Clone this wiki locally