Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

testing values in ecatt

ross_goodman
Participant
0 Kudos

Hi,

Anyone know if it is possible in ecatt to test a value in a result field.

My transaction creates a report which displays in an inline excel sheet. I know what the value of a given cell in the sheet should be so am I able to put something into the test script that verifes the cell content and logs the script as pass or fail depending on that check.

cheers,

RossG.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

You can check the value by using if .. endif to compare the value retrieved against the value you have, or you can also perform the check using the CHEVAR ( <parameter1> <comparison operator> <parameter2> ) command.

Hope it answers your question.

Thanks and Best regards,

Ajay

2 REPLIES 2

Former Member
0 Kudos

Hello,

You can check the value by using if .. endif to compare the value retrieved against the value you have, or you can also perform the check using the CHEVAR ( <parameter1> <comparison operator> <parameter2> ) command.

Hope it answers your question.

Thanks and Best regards,

Ajay

qianchen
Advisor
Advisor
0 Kudos

Hi Ross,

If you would like to embed the XLS with your eCATT script, maybe you can try the 3rd party tool Compuware TestPartner, as Excel is a windows application and eCATT tool itself cannot support any Windows applications directly. You can use the VBA provided by Microsoft to read the cells of XLS. Then make the comparison by either pass the value back to your eCATT script via CHEVAR or directly compare the results in the XLS and return the comparison result of TRUE or FALSE.

You need a license if TestPartner is used.

Kind Regards, Qian