Powered by Smartsupp

Wednesday, 02 February 2022 13:23

Command-line adapter

The command-line adapter (CLA) provides a quick and simple path for integrating an existing test tool into IBM Rational Quality Manager (RQM).

How does it work?

When the CLA starts the execution of a test, it creates a file that can be updated with name/value pairs that describe files/links that should be included in the execution result of that test. When execution of the test has been completed, this file is read by the CLA, and any valid files/links found are included in the execution result.

You can also use custom properties to populate information into the execution results of your CLA tests. This information consists of any name/value pairs you choose. For example, you might want to log the version of your test application and the operating system it’s running on.

Setting up and starting the command-line adapter

With the command-line adapter, a target test machine is used for command-line execution. You can use this command-line adapter if an adapter for your test type is not available. To use the command-line adapter, the target test machine must be set up to run the adapter and the test machine application must be started on the target test machine. After the command-line script is executed, an Execution Result is returned. The Execution Result includes attachments that contain the standard out and standard error information of the test process.

Image

Customizing the command-line adapter

When you use the command-line adapter, you can customize the mapping of the actual results. The application-under-test needs to return an exit that is mapped to a script Actual Results value.

Creating a job that uses the command-line adapter to test an application-under-test

When you use the command-line adapter, you must have at least one application that acts as the application-under-test. The application-under-test needs to return an exit that is mapped to a script Actual Results value.

Running a test with the command-line adapter using local resources

With the command-line adapter, you can use a target test machine for running command-line jobs. After the adapter is registered, you can run scripts by using the command-line execution adapter on the target test machine. Use a command-line adapter if an adapter for your target tests is not available.

On the tester machine, a test case with a command-line test script is created and run. The test produces a Test Execution Result which contains the standard out and standard error of the executed command.

Image

Running a test with the command-line adapter by reserving specific resources

With the command-line adapter, you can use a target test machine for running command-line jobs. After the adapter is registered, you can run scripts by using the command-line execution adapter on the target test machine. Use a command-line adapter if an adapter for your target tests is not available.

On the tester machine, a test case with a command-line test script is created and run. The test produces a Test Execution Result which contains the standard out and standard error of the executed command.

Image

Adding attachments and links to command-line execution results

You can attach files and links to the Result Details section of a command-line adapter execution result.

The process that runs the command-line test includes the qm_AttachmentsFile environment variable, whose value is the full path to a temporary file. The command-line test can update this temporary file to specify files and URLs to attach to the execution result.

 

Troubleshooting command-line adapter issues

The command-line adapter displays error messages at startup and when commands run.

 

Read how to install and configure the CLA, create and execute CLA tests, view test execution results and some of the more advanced features of the CLA, including:

  • Attaching files and links to the execution result
  • Accessing and setting execution variables in CLA tests
  • Setting custom properties
  • Mapping application exit codes to RQM result codes
  • Updating application progress complete values
  • Limiting the applications that the CLA can execute
Vector RQM Connection Utility is an add-on tool for Vector vTESTstudio. It serves to integrate IBM Rational DOORS Next Generation and IBM Rational Quality Manager into the Vector testing toolchain - vTESTstudio, CANoe and CANoe.DiVa.
 
With the help of the connection utility you can:
  • Trace Item Extraction
Generate trace items out of DOORS NG requirements or RQM test case specifications.
Note: Trace items can be linked to test cases in vTESTstudio. The link to the trace item source (requirement/test case specification) is then written to the test case result in the CANoe report. An overview of the design coverage of trace items is given by the vTESTstudio traceability matrix.
  • Test Case Upload
Upload information about implemented vTESTstudio test cases to RQM.
  • Test Execution
Automatically execute a set of predefined vTESTstudio test cases in CANoe.
  • Test Report Upload
Upload test case results from CANoe reports to RQM.
 
The connection utility can be used with two different workflows:
  • Requirement Based Workflow
Trace items in vTESTstudio are based on requirements from DOORS NG. In order to achieve full requirement coverage, every trace item (requirement) must be linked to at least one test case implementation in vTESTstudio. A test case can be linked to any number of trace items.
  • Test Case Based Workflow
Trace items are extracted from test cases in RQM; they serve as test case specifications. For every trace item (test case specification) exactly one test case implementation must be realized in vTESTstudio.
 
 
Minimum required versions: vTESTstudio 2.1 SP4, CANoe 9.0 SP4, CANoe.DiVa 10.0. 
Minimum required versions for the usage of full functional range: vTESTstudio 6, CANoe 15, CANoe.DiVa 10.0.
 
Compatibility is ensured for the following versions:
IBM DOORS Next Generation 6.0 or higher 
IBM Rational Quality Manager 6.0 or higher
 
 
New Features V3.0.1:
  • Map vTESTstudio test case attributes to IBM RQM test case categories 
    • New section [TestCaseAttributes2TestCaseCategories] in INI file provides the possibility to map vTESTstudio test case attributes to RQM test case categories.
  • Reassessed verdicts from CANoe Test Report Viewer
    • A new option allows the usage of reassessed verdicts from the CANoe Report Viewer. With this option activated, the reassessed verdict are uploaded to RQM and a respective comment about the original verdict is noted in the result details.
  • CANoe Test Report Viewer links in IBM RQM test results
    • The result details of the RQM test case results now hold a link to navigate to the respective test case in the loaded report within the CANoe Report Viewer.
  • Set result details via command line for test report upload
    • New optional parameter -details provides possibility to set additional comment for the result details.
  • Weight Configurable for Test Case Creation
    • The system defined RQM test case category Weight can now be configured in INI file ([TestCaseCategories]) if a different value than the default of 100 should be used for test case creation.
  • Path to Applications Configurable
    • New section [RegisteredApplications] in INI file provides possibility to customize path to registered applications on Jazz Team Server (e.g. to quality management that default to ‘qm’).
  • Requirement types configurable
    • The requirement types to be considered for trace item extract can now be configured in INI file.
  • Extended Test-Case Based Workflow for CANoe.DiVa
    • This option supports the mapping of multiple CANoe.DiVa generated test cases to the same RQM test case. As a consequence all test case results that refer to the same RQM test case will be aggregated to one overall verdict during test report upload. A textual summary of the single CANoe test case results will be annotated to the aggregated overall verdict.
 
Requirement Based Workflow
The requirement based workflow comprises 6 phases that are visualized in the following graphic.
  1. Export requirements as trace items (connection utility)
  2. Create test cases / link trace items (vTESTstudio)
  3. Import design traceability (connection utility)
  4. Create test case execution records (RQM)
  5. Execute test unit (CANoe)
  6. Import test report (connection utility)
 
 
 
 
Test Case Based Workflow
Overview
The test case based workflow comprises 6 phases that are visualized in the following graphic.
  1. Export test cases as trace items (connection utility)
  2. Create test cases / link trace items (vTESTstudio)
  3. Import design traceability (connection utility)
  4. Create test case execution records (RQM)
  5. Execute test unit (CANoe)
  6. Import test report (connection utility)

 

 
 
 
CANoe Execution Adapter
Test execution tab
This tab contains the integrated CANoe Execution Adapter, a vTESTstudio add-on that is also available as stand-alone application.
The purpose of the adapter is the activation and execution of a predefined set of vTESTstudio test cases in CANoe. This enables effective resource planning and support of various test strategies, e.g. executing all test cases that link to a changed requirement.
 
 
The adapter uses the CANoe COM API for the following actions:
  • Load CANoe configuration
  • Activation of test execution tree elements Start/stop measurement
  • Start test configuration
  • Read paths to test reports
Page 2 of 4
Image

Softacus AG

Löwenstrasse 20
8001 Zürich
Switzerland
E-Mail: info@softacus.com
Tel.: +41 43 5087081
Fax: +41 43 344 6075 

VAT: CHE-108.817.809 MWST
D-U-N-S® Number 486800618

Image

Softacus GmbH

Westendstrasse 28
60325 Frankfurt am Main
Germany
E-Mail: info@softacus.com
Tel.: +49 69 34876544
Fax: +49 69 5830 35709

VAT: DE301903892
D-U-N-S® Number 313482703

Image

Softacus s.r.o.

Křídlovická 351/47A
603 00 Brno
Czech Republic
E-Mail: info@softacus.com
Tel.: +420 530333482
Fax: +41 43 344 6075

VAT: CZ07286333
D-U-N-S® Number 496165108

Image

Softacus s.r.o.

Tatranské nám. 3
058 01 Poprad
Slovakia
E-Mail: info@softacus.com
Tel: +421 911 083 612
Fax: +41 43 344 6075

VAT: SK2121388148
D-U-N-S® Number  2121388148

Offcanvas

Cookie Policy