Capturing numbers displayed dynamically on a webpage?

Asked by NF

Hi,
We want to automate our regression tests. Basically, our application is a web app and we need to capture an ID that would be generated on the webpage for each action. I wanted to know if Sikuli can:
a) Capture the ids that are generated
b) Verify the status for the id generated on the webpage
c) Depending on the status provide pass/fail test results

For example:
I have used sikuli to automate and generate the ID successfully. For example I have the below text on my web page:
"Workflow generated successfully and the id is ----". Till then I am happy in using Sikuli.
For every process the id generated would be xxxx
Upon id generation, if the status(this is a column in the page) is "error" then the test should fail
and if the status = 'Processed or Loaded" then the test would be complete or end and test result should be PASS"

This is what all our regression is about. Getting the id e.g 1234(unique sequence but dynamic) and see if it fail or processed. I tried with onappear but i am not able to capture the id, but just the text. Also, its so hard to map the id with the status on the web page and i dont know how to do it.

Please provide help. I wanted to know if this is possible at all with Sikuli. Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

You might try the text/OCR feature, if you need to "read" the id.

To check the success/failure in your feedback column, images of the 2 possible text entries should be sufficient.

The rest is evaluating regions.

Revision history for this message
NF (nimmy) said :
#2

Alright, let me try as per your comments. Thank you very much for responding.

Can you help with this problem?

Provide an answer of your own, or ask NF for more information if necessary.

To post a message you must log in.