AcdntlPoet 2700019V2G Visits (1699)
You won't want to miss the following items that went live last week on developerWorks Rational! From articles to trials to webcasts, to featured authors, you'll find the best information right here:
Rational Focal Point 6.6 OSLC service provider capabilities
Best practices for systems and software development
IBM Rational solution for systems and software engineering
Source control process recipes for Rational Team Concert
Rational Focal Point: http
Rational Method Composer: http
Rational Team Concert: http
Richa Awasthy lives in Sydney, Australia and works with the IBM Asia Pacific Support Team at the Cumberland State Forest office. She is committed to helping you succeed in your job. She actively blogs, participates in forum activity, and writes developerWorks articles. Her career at IBM began in 2006 when she started as a developer. Now, several years later, she has experience with Rational Functional Tester, Rational Integration Tester, and Flex application testing. Not one to stop there, Richa is now learning about DB2. In her spare time, Richa enjoys reading with a cup of coffee in hand and music playing in the background. Saving the environment is another interest of hers. Sounds like Richa is set to conquer the world.
Soumya Y Shanthimohan 270004GAQS Visits (1698)
With the rise of Ajax powered sites, it is becoming very important for the websites to load the data quickly, asynchronously and without any delay.
For AJAX applications, JSON is faster and easier than XML.
Difference between JSON and XML
Does RPT support JSON inputs?
Yes. JSON inputs are supported since the version RPT 8.2.1.
How to pass JSON inputs into RPT?
JSON inputs can be passed into RPT using the below two methods -
I. Proxy recording
The procedure is the same as recording a http test.
The use case would be:
1. [RPT Recording Wizard] Start a 'New test from Recording'
2. [RPT Recording Wizard] Select the option 'http test'
3. [RPT Recording Wizard] Record an "unmanaged application"
4. [RPT Recording Wizard] Selection of an available port on the machine, and then start of the recording.
5. [SoapUI client ] Launch SOAP UI > File > Preferences > Proxy settings
6. [SoapUI client ] Populate the 'Host' flied with the value 127.0.0.1. The Port number should be the one that you selected during recording (as in Step 4)
7. [SoapUI client] Manual tests until the end of a given scenario.
8. [Rpt Recording Wizard] Stop the recording.
Once the recording is stopped, a SOA extension test should be created in RPT with all the JSON information.
II. Manual test suite creation
1. Launch RPT
2. File > New Web service Test > Empty Test
3. Once an Empty test is created, you can add 'Text requests'
4. The URL should have the JSON information.
5. Add a 'http header'
Name - 'Content-Type'
Value - 'application/json'
6. Lastly, paste the JSON Content to be sent in the test suite -
Some JSON Samples
mquimby 060001FAVB Visits (1697)
There is a new video available for IBM Rational Publishing Engine (RPE). This is a demonstration of using RPE extract a SV-1 from an IBM Rational Rhapsody UPDM sample model. The video is available on IBM Education Assistant for Rational and the IBM Rational User Education YouTube channel. Here is information on accessing the videos...
Thank you to Pritesh work on this video!
Here is a look at the YouTube version of the video in case you want to preview it here:
vinayhs 270002JFCW Visits (1696)
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.
AcdntlPoet 2700019V2G Visits (1696)
Using the Sandbox Practice Environment for Rational DOORS Next Gen v4.0.5+ This video illustrates how to use a sandbox on Jazz.net as your practice environment for completing the Getting Started tutorial.