IBM Rational Rhapsody TestConductor Add On. Testing on an Integrity Target

Similar documents
IBM Rational Rhapsody

IBM Rational Rhapsody Gateway Add On. CaliberRM Coupling Notes

PetaLinux SDK User Guide. Application Development Guide

Installation and User Guide Zend Browser Toolbar

Rhapsody in C++ Tutorial

MDM Mass Configuration Tool User s Manual

StarWind iscsi SAN Software: Installing StarWind on Windows Server 2008 R2 Server Core

Moxa Device Manager 2.3 User s Manual

HyperFS PC Client Tools

Setting up VMware ESXi for 2X VirtualDesktopServer Manual

RealView Developer Suite Version 2.1

Moxa Device Manager 2.0 User s Guide

Veeam Task Manager for Hyper-V

StarWind iscsi SAN Software: Using with Citrix XenServer

Issue 2EN. Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation

2X Cloud Portal v10.5

Canaveral iq WBT Add-on for Windows CE 2.12-based Wyse Terminals

TIBCO ActiveMatrix BusinessWorks Plug-in for TIBCO Managed File Transfer Software Installation

EMC ViPR Controller Add-in for Microsoft System Center Virtual Machine Manager

Policy Guide Access Manager 3.1 SP5 January 2013

ShoreTel Enterprise Contact Center Using Agent Toolbar

Subversion Server for Windows

Reason 8 Multi Licenses

Identikey Server Getting Started Guide 3.1

753 Broad Street Phone: Suite 200 Fax: Augusta, GA Copyrights

BrightStor ARCserve Backup for Linux

Clearview Customer Web Access

Xcalibur Global Version 1.2 Installation Guide Document Version 3.0

User Document. Adobe Acrobat 7.0 for Microsoft Windows Group Policy Objects and Active Directory

AG MacOS Standalone Array Client Administration Guide

IBM Rational Rhapsody

Enhanced Diagnostics Improve Performance, Configurability, and Usability

TIBCO Enterprise Administrator Release Notes

IBM Tivoli Web Response Monitor

StarWind iscsi SAN Software: Using StarWind with VMware ESX Server

How to deploy console cable to connect WIAS-3200N and PC, to reset setting or check status via console

jbase 5 Install on Amazon AWS a Primer

NetBackup Backup, Archive, and Restore Getting Started Guide

DP-313 Wireless Print Server

PORTA ONE. Porta Switch. Handbook: Unified Communications Maintenance Release 24.

Setting up VMware Server v1 for 2X VirtualDesktopServer Manual

StarWind iscsi SAN Software: Using an existing SAN for configuring High Availability storage with Windows Server 2003 and 2008

eg Enterprise v5.2 Clariion SAN storage system eg Enterprise v5.6

SMS Database System Quick Start. [Version 1.0.3]

DS-5 ARM. Using the Debugger. Version 5.7. Copyright 2010, 2011 ARM. All rights reserved. ARM DUI 0446G (ID092311)

Setup and Configuration Guide for Pathways Mobile Estimating

Novell Identity Manager Resource Kit

StreamServe Persuasion SP4 StreamServe Connect for SAP - Business Processes

Installing Microsoft Exchange Integration for LifeSize Control

2 Installing Privileged User Manager 2.3

Citrix EdgeSight for Load Testing Installation Guide. Citrix EdgeSight for Load Testing 3.8

MultiOne. Getting started

Change Management for Rational DOORS User s Guide

SELF SERVICE RESET PASSWORD MANAGEMENT BACKUP GUIDE

Smart Control Center. User Guide. 350 East Plumeria Drive San Jose, CA USA. November v1.0

Project management integrated into Outlook

Web Enabled Software for 8614xB-series Optical Spectrum Analyzers. Installation Guide

ShoreTel Contact Center Using ShoreWare Agent Toolbar

Troubleshooting File and Printer Sharing in Microsoft Windows XP

EventTracker: Configuring DLA Extension for AWStats Report AWStats Reports

Configuring IBM Cognos Controller 8 to use Single Sign- On

Configuration Guide. SafeNet Authentication Service AD FS Agent

Prisma II Software Upgrade Program (SOUP) Installation Guide

User Guide. SysMan Utilities. By Sysgem AG

EVault Endpoint Protection 7.0 Single Sign-On Configuration

IBM WebSphere Partner Gateway V6.2.1 Advanced and Enterprise Editions

Novell Access Manager

CodeWarrior Development Studio for Freescale S12(X) Microcontrollers Quick Start

4.0. Offline Folder Wizard. User Guide

LPR for Windows 95/98/Me/2000/XP TCP/IP Printing User s Guide. Rev. 03 (November, 2001)

Installing and Configuring DB2 10, WebSphere Application Server v8 & Maximo Asset Management

Application Interface Services Server for Mobile Enterprise Applications Configuration Guide Tools Release 9.2

EView/400i Management Pack for Systems Center Operations Manager (SCOM)

Andreas Burghart 6 October 2014 v1.0

CA Unified Infrastructure Management Server

ALTIRIS Notification Connector Configuration Guide

NBMR. Bare Machine Recovery for EMC NetWorker. User Guide. For Linux. June Version Cristie Data Products GmbH Nordring 53-55

CA XCOM Data Transport for Windows Server/Professional

Quick Start Guide. For Thick and/or Thin Client Environments. Released: February 2012

USB GSM 3G modem RMS-U-GSM-3G. Manual (PDF) Version 1.0,

Novell ZENworks 10 Configuration Management SP3

Sophos Anti-Virus for NetApp Storage Systems startup guide

CA APM Cloud Monitor. Scripting Guide. Release 8.2

OpenInsight 9.3 Arev32 Quick Start Guide

EventTracker: Configuring DLA Extension for AWStats report AWStats Reports

ElectricCommander. Technical Notes MS Visual Studio Add-in Integration version version 3.5 or higher. October 2010

Lab Creating a Logical Network Diagram

VERITAS NetBackup 6.0

Using Network Application Development (NAD) with InTouch

ArcMail Technology Defender Mail Server Configuration Guide for Microsoft Exchange Server 2003 / 2000

Virtual Contact Center

Sophos Deployment Packager user guide. Product version: 1.2

Aras Innovator Internet Explorer Client Configuration

PROMISE ARRAY MANAGEMENT (PAM) for

-lead Grabber Business 2010 User Guide

Hyper-V Server 2008 Setup and Configuration Tool Guide

Using Microsoft Windows Authentication for Microsoft SQL Server Connections in Data Archive

Transcription:

IBM Rational Rhapsody TestConductor Add On Testing on an Integrity Target 1

Rhapsody IBM Rational Rhapsody TestConductor Add On Testing on an Integrity Target Release 2.6.0 2

License Agreement No part of this publication may be reproduced, transmitted, stored in a retrieval system, nor translated into any human or computer language, in any form or by any means, electronic, mechanical, magnetic, optical, chemical, manual or otherwise, without the prior written permission of the copyright owner, BTC Embedded Systems AG. The information in this publication is subject to change without notice, and BTC Embedded Systems AG assumes no responsibility for any errors which may appear herein. No warranties, either expressed or implied, are made regarding Rhapsody software including documentation and its fitness for any particular purpose. Trademarks IBM Rational Rhapsody, IBM Rational Rhapsody Automatic Test Generation Add On, and IBM Rational Rhapsody TestConductor Add On are registered trademarks of IBM Corporation. All other product or company names mentioned herein may be trademarks or registered trademarks of their respective owners. Copyright 2000-2014 BTC Embedded Systems AG. All rights reserved. 3

Contents Content Contents...4 Contacting IBM Rational Software Support...5 Introduction...6 Execution of TestCases on the Integrity Target (animation based testing mode)...7 Preparing the Code Generation Configuration...7 Settings of the Code Generation Component...7 Settings of the Code Generation Configuration...7 Properties of the Code Generation Configuration...7 Preparing the Test Architecture...8 Preparing the TestPackage...8 Properties of the TestPackage...8 Executing a TestCase...8 Execution of TestCases on the Integrity Target (assertion based testing mode)...10 Environment INTEGRITY5: Preparing the Code Generation Configuration...10 Settings of the Code Generation Component...10 Settings of the Code Generation Configuration...10 Properties of the Code Generation Configuration...11 Tags of the Code Generation Configuration:...12 Environment INTEGRITY5: Executing a TestCase...12 Limitations...14 4

Contacting IBM Rational Software Support IBM Rational Software Support provides you with technical assistance. The IBM Rational Software Support Home page for Rational products can be found at http://www.ibm.com/software/rational/support/. For contact information and guidelines or reference materials that you need for support, read the IBM Software Support Handbook. For Rational software product news, events, and other information, visit the IBM Rational Software Web site. Voice support is available to all current contract holders by dialing a telephone number in your country (where available). For specific country phone numbers, go to http://www.ibm.com/planetwide. Before you contact IBM Rational Software Support, gather the background information that you will need to describe your problem. When describing a problem to an IBM software support specialist, be as specific as possible and include all relevant background information so that the specialist can help you solve the problem efficiently. To save time, know the answers to these questions: What software versions were you running when the problem occurred? Do you have logs, traces, or messages that are related to the problem? Can you reproduce the problem? If so, what steps do you take to reproduce it? Is there a workaround for the problem? If so, be prepared to describe the workaround. 5

Introduction This document describes how TestCases can be executed with IBM Rational Rhapsody TestConductor Add On on an Integrity target, while Rhapsody is running on a Windows or Linux host. We assume the basic installation is already done: The tools needed to develop software for an Integrity target are installed (for example Greenhills multi IDE, compiler, Integrity simulator, etc.). Rhapsody is installed on the Windows or Linux host and the Rhapsody adapter for development of applications for an Integrity target is installed and prepared. We will describe the execution of TestCases with the Integrity simulator using an example. In the first section of this document, testing on an Integrity target using the animation based testing mode is described. For this testing mode, also a TCP/IP connection between Rhapsody and the tested application is needed. In the second section, testing on an Integrity target using the assertion based testing mode is described. This new testing mode is available since Rhapsody 7.6. 6

Execution of TestCases on the Integrity Target (animation based testing mode) Please follow the steps as described in the sections below. Preparing the Code Generation Configuration Settings of the Code Generation Component Add some settings in the Settings dialog of the CG Component: General::Include Path <path to Rhapsody Share>/../TestConductor enter the path to the Rhapsody Share folder instead of the variable $OMROOT, as Integrity make tool does not expand the $OMROOT variable by default. Settings of the Code Generation Configuration Add some settings in the Settings dialog of the CG Configuration: Settings::Libraries libivfs.a Settings::Environment INTEGRITY5 Settings::CompilerSwitches -DUSE_IOSTREAM -DTC_INTEGRITY Properties of the Code Generation Configuration Adjust some properties in the CG and in the CPP_CG subject (when testing a C application use the corresponding properties of the subject C_CG instead); example using environment INTEGRITY5: CPP_CG::INTEGRITY5::RemoteHost set the value to the IP of the Integrit simulator or target, for example 192.168.200.254 7

(depends on your installation). This is needed only when using instrumentation mode Animation. CPP_CG::INTEGRITY5::IDEInterfaceDLL <multi install path>/rhapsody_multi_ide.dll Enter the full installation path of the installed multi IDE tool (for example: C:\ghs\multi_614). CPP_CG::INTEGRITY5::IntegrityRoot <integrity install path> Enter the full installation path of the installed integrity sources (for example: C:\ghs\int1104). Preparing the Test Architecture The TestConfiguration of the TestContext shall depend on the CG Configuration with the proper settings for Integrity. This way the application is started in the Integrity simulator if the TestCase execution is activated. Preparing the TestPackage Properties of the TestPackage TestConductor::TestCase::ResetAppBeforeStartTest unchecked - This means that TestConductor does not reset/start an already running (e.g. started by Rhapsody) application again, if the user presses Execute Test Case. So the test case execution is simple attached to the already running application. Executing a TestCase Start the Integrity MULTI Project Manager and load a kernel project (this kernel project must contain: Debugging, Dynamic Load, Resource Manager, File System Client, Core File Collection) Start the MULTI Debugger/Simulator via Debug <kernel> menue entry point Connect <kernel> with the simulator (for example INTEGRITY Simulator for PowerPC (isimppc) ) In the MULTI console, enter command: set_runmode_partner -auto In the MULTI console, enter command: c (this loads the kernel into the debugger / simulator) Connect Rhapsody with the Integrity simulator: In Rhapsody, menu Code->Target- >Connect Update the TestCase (from the context menu of the TestCase) Build the TestCase (from the context menu of the TestCase). It generates code, compiles and builds the application. 8

Download the built application to the simulator: In Rhapsody, menu Code->Target-> Download Press Go within the simulator, in order to launch the downloaded application within the simulator. Note, that the Animation Toolbar within Rhapsody gets active, after the user has started the application in the simulator. Execute the TestCase (from the context menu of the TestCase). Then the test case execution is simple attached to the already running application, while TestConductor is driving and monitoring the TestCase execution on the host machine. TestConductor shows the status of the test execution in the test execution window. Inspect the result of the TestCase execution: TestConductor automatically adds the detailed html result for the TestCase execution to the Rhapsody model. Also, execution of several TestCases in a row is possible by invoking Execute TestContext on a TestContext or by invoking Execute TestPackage on a TestPackage. 9

Execution of TestCases on the Integrity Target (assertion based testing mode) Please follow the steps as described in the sections below. Depending on the used environment (INTEGRITY5, Integrity5ESTL) some properties or tags must be set differently. This table shows the Integrity environments supported by TestConductor. For all supported environments, some properties and tags need to be adjusted manually (see details in the next sections). Environment C++ C INTEGRITY5 Supported Supported Integrity5ESTL Environment INTEGRITY5: Preparing the Code Generation Configuration Settings of the Code Generation Component Add some settings in the Settings dialog of the CG Component: General::Include Path <path to Rhapsody Share>/../TestConductor enter the path to the Rhapsody Share folder instead of the variable $OMROOT, as Integrity make tool does not expand the $OMROOT variable by default. Settings of the Code Generation Configuration Add some settings in the Settings dialog of the CG Configuration: Settings::Libraries libivfs.a Settings::Environment INTEGRITY5 10

Settings::CompilerSwitches -DUSE_IOSTREAM -DTC_INTEGRITY Properties of the Code Generation Configuration Adjust some properties in the CG and in the CPP_CG subject (when testing a C application use the corresponding properties of the subject C_CG instead); example using environment INTEGRITY5: CPP_CG::INTEGRITY5::BLDTarget sim800 CPP_CG::INTEGRITY5::RemoteHost set the value to the IP of the Integrit simulator or target, for example 192.168.200.254 (depends on your installation). This is needed only when using instrumentation mode Animation. CPP_CG::INTEGRITY5::IDEInterfaceDLL <multi install path>/rhapsody_multi_ide.dll Enter the full installation path of the installed multi IDE tool (for example: C:\ghs\multi_614). CPP_CG::INTEGRITY5::IntegrityRoot <integrity install path> Enter the full installation path of the installed integrity sources (for example: C:\ghs\int1104). CPP_CG::INTEGRITY5::RTC_DownloadApplication Checked, if TestConductor should automatically download the application to the target CPP_CG::Configuration::Environment INTEGRITY5 CPP_CG::Configuration::ImplementationProlog extern C FILE* hostio_fopen(const char* filename, const char* mode); CG::Configuration::PreFrameworkInitCode char c1[200]; char c2[200]; FILE *f = hostio_fopen("<path_to_cg_component_folder>\\defaultconfig\\test_args.txt", "r"); if (f!= NULL) { if(fgets(c1, 200, f)) { int i = strlen(c1); if (c1[i - 1] == '\n') c1[i - 1] = '\0'; if (c1[i - 2] == '\r') c1[i - 2] = '\0'; } if(fgets(c2, 200, f)) { 11

} fclose(f); int i = strlen(c2); if (c2[i - 1] == '\n') c2[i - 1] = '\0'; if (c2[i - 2] == '\r') c2[i - 2] = '\0'; } int argc=8; char* argv[]={"-resultfile","rtcresult.rst","-logfile","rtclog.txt","-tcontext",c1,"- tcase",c2}; Set up your own project path for <path_to_cg_component_folder> (for example: C:\\Users\\qa_user\\IBM\\Rational\\Rhapsody\\8.1\\11_Multiply\\TPkg_Multiply_Co mp). Tags of the Code Generation Configuration: rtc_testexecution_script_content C: cd $CONFIGDIR echo $tcontext>test_args.txt echo $tcase>>test_args.txt "$executable" -resultfile "$rtc_resultfile" -logfile "$rtc_logfile" -tcontext $tcontext -tcase $tcase TIMEOUT 30 rtc_result_filename C:/ghs/int1104/sim800/rtcresult.rst After applying these changes, TestConductor tests can be executed on the Integrity target using the standard TestConductor work flow: Create and specify tests, update, build and execute tests. Environment INTEGRITY5: Executing a TestCase Start the Integrity MULTI Project Manager and load a kernel project (this kernel project must contain: Debugging, Dynamic Load, Resource Manager, File System Client, Core File Collection) Start the MULTI Debugger/Simulator via Debug <kernel> menue entry point Connect <kernel> with INTEGRITY Simulator for PowerPC (isimppc) In the MULTI console, enter command: set_runmode_partner -auto In the MULTI console, enter command: c (this loads the kernel into the debugger / simulator) Connect Rhapsody with the Integrity simulator: In Rhapsody, menu Code->Target- >Connect Update the TestCase (from the context menu of the TestCase) 12

Build the TestCase (from the context menu of the TestCase). It generates code, compiles and builds the application. Download the built application to the simulator: In Rhapsody, menu Code->Target-> Download (not needed if property CPP_CG::INTEGRITY5::RTC_Download Application is checked) Execute the TestCase (from the context menu of the TestCase). The application is downloaded on the target (if property CPP_CG::INTEGRITY5::RTC_Download Application is checked). Then the application is launched on the target (by the user who must press Go within the simulator), while TestConductor is driving and monitoring the TestCase execution on the host machine. TestConductor shows the status of the test execution in the test execution window. Inspect the result of the TestCase execution: TestConductor automatically adds the detailed html result for the TestCase execution to the Rhapsody model. Also, execution of several TestCases in a row is possible by invoking Execute TestContext on a TestContext or by invoking Execute TestPackage on a TestPackage. 13

Limitations The Computation of Code Coverage together with an Integrity environment is currently not supported. 14