03.11.2014 Views

SilkPerformer Citrix Tutorial - Borland Technical Publications

SilkPerformer Citrix Tutorial - Borland Technical Publications

SilkPerformer Citrix Tutorial - Borland Technical Publications

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 CREATING TEST SCRIPTS<br />

Verification & Parsing via OCR<br />

during script customization. <strong>Citrix</strong>VerifyText functions compare text strings in<br />

replay bitmaps to determine if they are identical.<br />

<strong>Citrix</strong>ParseText functions are available for parsing text. These API calls work in<br />

the same way that standard parsing functions work (Web, database, etc).<br />

Optical character recognition relies on pattern databases to recognize varying<br />

fonts and text styles. Font databases must be generated before OCR can be run.<br />

See “<strong>Citrix</strong> System Settings for OCR” for details.<br />

Only <strong>Citrix</strong> TrueLogs show verification and parsing API calls in the tree view.<br />

With other TrueLog modes (Web, database, etc), new API nodes are not added<br />

to the tree view.<br />

Note It is absolutely important to perform OCR operations on stable<br />

content, because when used on a frequently changing screen it is<br />

only a matter of timing which image to use for the conversion, which<br />

results in accidental results. When synchronizing on window events<br />

it is possible that the screen refresh is slightly delayed, which again<br />

results in timing dependent outcome. Therefore it is a good practice<br />

to either script a wait or a <strong>Citrix</strong>WaitForScreen function call before<br />

all OCR verification/ parsing functions.<br />

<strong>SilkPerformer</strong> <strong>Citrix</strong> <strong>Tutorial</strong> 25

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!