It's all about the answers!

Ask a question

Error details population in RTC defect from RQM/RFT failure


Supriya Nandi (133) | asked Jan 20 '15, 10:40 p.m.
Hi - is there any API available to populate the error coming from automated execution of RFT to the defect description in RTC, when the failed test case / script is linked to this defect?

Comments
Paul Slauenwhite commented Jan 21 '15, 6:45 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

Can you elaborate a bit more? 


Supriya Nandi commented Jan 31 '15, 12:08 a.m.

When a test case fails, defect gets created thru RTC API in the tool we are buidling, requirement is to provide the error screen shot as an attachment to the created defect.
So does RFT execution failure generates screenshot?
Can there be any API to pick up this screenshot and attach to defect as a linked file?

One answer



permanent link
Prakash Chauhan (36) | answered Feb 17 '15, 12:03 p.m.
RFT provides the following API to capture screen shot :
getRootTestObject().getScreenSnapshot();
This can be added to the  playback log file using :
logInfo("Final Screen Shot", getRootTestObject().getScreenSnapshot());

and  in RFT  preferences  window for playback->logging   there is a preference  to  enable capturing of screen snapshot in case the playback fails (which should be enabled by default i guess)

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.