Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Error details population in RTC defect from RQM/RFT failure

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?

0 votes

Comments

Can you elaborate a bit more? 

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
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)

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,943
× 7,501

Question asked: Jan 20 '15, 10:40 p.m.

Question was seen: 4,616 times

Last updated: Feb 17 '15, 12:03 p.m.

Confirmation Cancel Confirm