Planning and Executing Testing

Objective

After completing this lesson, you will be able to illustrate the creation and execution of test cases as well as the creation and processing of defects

Testing: Plan and Execution

Screenshot of a test case and the test execution overview screens.

The figure illustrates a test case and the test execution overview screens.

Note

Test Case
Description or script to verify/validate requested/existing functionality.
Defect
Entity to address and resolve software defects found during testing.

Details of Test Management:

Watch the video to learn about Test Management.

Screenshot of the test automation with SAP Cloud ALM and Tricentis. Information about the benefits of test automation is provided in the following text.

Another test automation option is: SAP S/4HANA Cloud Test Automation.

Benefits of test automation:

  • Time savings.
  • Error reduction.
  • Scalability.
  • Repeatability.
  • Efficient execution.

In the integration, SAP Cloud ALM manages the entities for business processes, requirements, user stories, and defects. These are all linked to manual and automated test cases.

For automated test cases, the test automation endpoint connects to Tricentis Test Automation (TTA) via test automation APIs. SAP Cloud ALM mainly focuses on orchestration, but execution is also possible from this platform. Reporting and triggering of test cases are available in SAP Cloud ALM.

For each SAP Cloud ALM tenant, there is a corresponding Tricentis tenant. The automated test cases are managed by TTA, and only necessary information is synchronized using the transformation APIs. TTA is the target environment for the automation, including the creation, maintenance, customization, and execution of test cases.

In TTA, the test execution is facilitated by a piece of software called an automation agent.

The agent program can be installed on:

  • A local machine.
  • Virtual machine.
  • Even in a container.

These agents:

  • On-premise execution agents (only used in on-premise systems):
  • Hosted execution agents:
    • private (=local test, test results only visible to you) and
    • shared
  • Connect to TTA and are always ready to receive and execute tests.

Exercises in the Lesson: Planning and Executing Testing

The figure illustrates all steps, performed in the exercises of this training.

In this lesson, there are three exercises in which you perform the following:

Create a Test Case
  • Create a new test case.
  • Add mandatory information and necessary additional information.
  • Add activities to the test case.
  • Specify and add test steps.
  • Mark the test case as prepared, and add tag to cluster test cases.
Execute the Test Case
Execute the test case, and set test steps to pass or fail.
Create a Defect
  • Create a defect from test execution.
  • Add mandatory information and necessary additional information.

Create a Test Case

Business Scenario

As a test designer, you are asked to prepare the test steps for test cases during the next test phase.

Task Flow

In this exercise, you perform the following steps:

  • Use the Test Preparation function.
  • Create a test case with process assignment.
  • Elaborate your test case including step description and expected results.

Exercise Information

Note

In this exercise, when the values include ## or XX, replace the character with a two-digit number (01–30).

Exercise Options

Perform the exercise by entering the requested values in the fields of the following simulation.

Note

All text input fields can be confirmed by choosing the Tab or Enter key or by leaving the text box.

How to Assign a User Story and Requirements

Business Scenario

As a test designer, you are asked to assign a User Story and Requirement to a test case to ensure the full test coverage for the next test phase.

Task Flow

Follow these steps:

  • Open an existing Test Case.
  • Assign a User Story.
  • Assign a Requirement.

Execute the Test Cases

Business Scenario

As a tester, you are asked to execute test cases prepared for the next test phase.

Task Flow

In this exercise, you perform the following steps:

  • Use the Test Execution function.
  • Execute the test case for every single step.
  • For every test step, document the actual result, and note if it is passed or failed.
  • Provide more comments or documents if required.

Exercise Information

Note

In this exercise, when the values include ## or XX, replace the character with a two-digit number (01–30).

Exercise Options

Perform the exercise by entering the requested values in the fields of the following simulation.

Note

All text input fields can be confirmed by choosing the Tab or Enter key or by leaving the text box.

Create a Defect

Business Scenario

As a tester, you want to create a defect for a test case that failed.

Task Flow

In this exercise, you perform the following steps:

  • Create a defect for the test step that failed.
  • Add basic information, for example, title, description, priority.
  • Optional: Add extra attributes such as the desired completion date, the roles, or teams responsible for solving the defect.

Exercise Information

Note

In this exercise, when the values include ## or XX, replace the character with a two-digit number (01–30).

Exercise Options

Perform the exercise by entering the requested values in the fields of the following simulation.

Note

All text input fields can be confirmed by choosing the Tab or Enter key or by leaving the text box.

How to Correct a Defect

Business Scenario

As a member of a development team, you have to fix a test defect created during a test phase and inform a tester that a retest can be performed.

Task Flow

Follow these steps:

  • Open a test defect assigned to you or your team.
  • Analyze and if necessary, fix the issue.
  • Inform the tester that a retest can be performed.

Log in to track your progress & complete quizzes