Skip to Content

testing values in ecatt

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 08, 2008 at 08:58 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 08, 2008 at 09:35 AM

    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

    Add comment
    10|10000 characters needed characters exceeded