How to check only part of a cell value
I need to check cell data in a JavaTable but only the first 33 characters of the cell data is predictable. The rest of the characters that make up the value in the cell are random.
If I check the whole cell with:
JavaWindow("HSM Manager").JavaDialog("Import Keys - Step 3").JavaTable("UITable").Check CheckPoint( "UITable")
then obviously it fails due to the random characters.
I can get the value and use 'Left' to take just the first 33 characters as so:
cellvalue = Left((JavaWindow("HSM Manager").JavaDialog("Import Keys - Step 3").JavaTable("UITable").GetCellData(0, 1)),33)
However, I basically have two questions:
1. How do I form this into a checkpoint to check only those 33 bytes and record it in the report?
2. Is there a way that I can easily specify 'only check the first 33 characters' when I record the initial script and insert a checkpoint using the 'Table Checkpoint Properties' dialog?
Re: How to check only part of a cell value
Use GetCellData, Left, StrComp and Reporter.ReportEvent