Skip to Main Content

General Development Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to Map XML Summary comments/tags from OpenScript into OTM through Java

878316Oct 19 2012
Hi,

I would like to know if there is a possibility of copying the XML Summary comments/tags of a test case method in Openscript as test action and expected results of a test case in OTM

The goal/reason is have to all the test case steps/actions and expected results and the corresponding automation code at one place so that maintenance is easy.


Something like a testcase method below from openscript

<Summary>
<testproperties>
<testcaseTiltle =" Automation of Expense Bill ">
</testcaseTitle>
<testcaseId>
</testcaseId>
<testAction>
Click Menu -> Main Menu -> Expense
</test action>
<expectedResult>
Expense form should be opened successfully
</expectedResult>
<testAction>
Enter the Expense Amount and Date
Click Save
</testAction>
<expectedResult>
Expense for a given date should be submitted successfully
</expectedResult>
</testproperties>
</Summary>


{{@TestCaseMethod}}
public void submitExpense()
{
....... automation code......
}

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 16 2012
Added on Oct 19 2012
0 comments
92 views