0

Working with Test Cases

  • updated 1 mth ago

Description

A test case is a set of actions or instructions that help confirm whether your LogicNets-based application is working as expected. It consists of one or more steps that the system executes in a sequence. The system can execute a test case by itself or as part of a suite of test cases. 

When you select a test case from the Test Suite menu, the system displays the test case view. The first section in this view displays the details of the test case, including its name, description, when it was created and by whom, revision, and request URL. The second section displays the request and response along with the headers.

The third section, Run Details, shows the list of all previous runs of that test case.

Create an Empty Test Case

To create a new test case, start by creating/selecting the test suite in which you want to create the test case. Click Create Empty Test Case. The system opens a popup window where you can enter the details for your new test case. Enter the name, description, and the associated URL. 

Once you have entered the details, click Create and the system creates the empty test case. To begin setting up the test case, click Modify Test Case. Enter the test details in the appropriate tabs: Request, Response, Request Headers, Response Headers.

Modify a Test Case

To modify an existing test case, select the test case and click Modify Test Case. Make changes to modifiable fields and click Save. The system increments the revision number by 1 and updates the last modified date and time.

Clone a Test Case

To clone a test case, select a test case and click Clone Test Case. The system displays the name and description of the test case you are cloning. Change the name and update the details and click Clone. The system will add the test case to the same test suite as the original test case.

Run a Test Case

You can run an individual test case, even it if is part of a test suite. To run a single test case, expand the test suites in the tree view to display the test cases within a test suite. Click the test case you want to run and click the Run Test Case button.

The system displays a popup window with the name of the test case and a dropdown menu containing the list of target systems against which to run the test. Click Run to start the test case.

The system displays the real-time status of the test case. If the test case is running, the system says that in the Details column. 

Once the execution is finished, the system displays the status and run details. 

If a test fails, the system displays an error.

When you close the popup screen, the system refreshes the tree and displays the status of the last execution. The run details section displays the status and details of the run.

Deactivate/Activate a Test Case

To deactivate a test case in a test suite instead of deleting it, select the test case and click Deactivate Test Case. While that test case is deactivated, the system will skip it when executing the test suite in which it is located. You are also not able to run the test case individually.

To reactivate a deactivated test case, click the test case and click Activate Test Case.

Delete a Test Case

To permanently delete a test case, click the test case to delete. Click Delete Test Case and the system displays a popup window asking you to confirm the deletion.

Reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
Like Follow
  • 1 mth agoLast active
  • 11Views
  • 1 Following

Home