vinayhs 270002JFCW Visits (1776)
In Rational Test RealTime (RTRT) I want to test function foo() in the sample source code, where I will expect stub call some_Task(), but some_Task() function is present in endless loop.
To handle this endless loop, in order to do that I need to foreclose exit through RTRT from function foo().
I can use setjmp()/longjmp functionality to "exit" a test under certain condition. If some_Task() is stubbed then it can be done.
The below steps explain how to resume the execution of the test script when user code has reached an handled exception:
- stub the function that would put the user program in 'stopped' mode or 'exit'
- resume the execution of the test (using setjmp/longjmp combination)
First of all, the ptu has to include the header file <setjmp.h>
Note the use of '@' that would prevent the PTU parser to search for this file.
At this stage, the compiler header files might not be available.
Then, the setjmp structure has to be declared:
DEFINE STUB PTU_globalvar
Then, a user function has to be stubbed :
DEFINE STUB STUB_c
Then, in the test code include :
@if( ! setjmp( failure_setjump) )
This should help in forming a test case to handle the endless loops.
Soumya Y Shanthimohan 270004GAQS Visits (1446)
A scenario where a web application was recorded using Rational Performance Tester (RPT).
After playback, data correlation errors were noticed in spite of manually creating the references. Upon analyzing the server responses, it was noted that some of the responses were sent in binary format.
Data correlation cannot be done on the response content if the data is in binary. The response should be in readable format to implement data correlation.
The below steps were followed and the script was re-recorded:
Open RPT Workbench -> Select 'Window' -> 'Preferences' -> Select 'Test' -> 'Test Generation' -> Select all the check boxes and record again.
The server responses after the above settings looked fine, however, the correlation errors still remained. Upon further investigation, it was noticed that the users ran into trouble at the "Home - Portal" page.
Instead of getting redirected to http
It was also noticed that the initial URL was rather odd, it had a jsessionid incorporated in it:
Usually the initial URL is rather generic, something like
The concern here is, Incorporating the jessesion (8AF54....) value in the URL for all the virtual users, the playback sessions for the multi-user playback are not fully differentiated by the server.
The issue was resolved by using a different URL without specific information like above.
AcdntlPoet 2700019V2G Visits (1800)
Rational Team Concert v4.0.6: Advanced Work Item Customization - Calculated Value: This video describes how to configure Rational Team Concert and write a script to create a calculated value .
The Script.java file can be downloaded from
CQAdmin 270006DKV2 Visits (1944)
Following is a list of the recently published Tech Notes on ClearQuest APIs. These Tech Notes are really useful and required for ClearQuest Admins on day-to-day basis.
Don't miss our pr
XPXK_Vijayakumar_Pandi 270005XPXK Visits (1398)
Chrome enablement may seem to fail consistently even after configuring the enablement settings in IBM Rational Functional Tester (RFT).
When you enable the Google Chrome browser through RFT, you would be prompted with following warning messages: