Default language.

Running parsing functions only once


When you are parsing for AR System table entries or replacing quotation marks, backslashes, user information, and so on, repeated script runs will return the same response again and again if you set the test environment up correctly. For example, if your user only views her tickets, she should have the same set of tickets to choose and view every time she performs those actions. If she does not create tickets, the number of tickets to view will not change. Therefore, you should parse the response only once to reduce SilkPerformer work. The goal is to measure BMC Remedy Mid Tier performance, not how quickly SilkPerformer parses responses.

To verify that parsing is done only the first time through the transaction, use a Boolean check:

if gnTxCount = 1 then 
parseRequestList(buffer);
end;

Sometimes you need to parse in every iteration, such as when searching for an instance ID or a newly created entry ID.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

Remedy Action Request System 20.02