Flex protocol lr_xml_find _values has been replaced by web_reg_save_param_xpath with Patch 4

With LR version 11 with PA lr_xml_get_values has been replaced by function web_reg_save_param_xpath . To perform text checks which was possible in LR version 11 with Patch 3 follow the below mentioned approach.

The new web snapshot does not support find API, but you can use the following steps in order to implement find by yourself :

1. As a result of right click (create parameter) web_reg_save_param_xpath step will be created:

web_reg_save_param_xpath(

"ParamName=CorrelationParameter_1",

"QueryString=/AMFPacket[1]/Messages[1]/Message[1]/AMF3[1]/object-externalizable-custom[1]/flex.messaging.messages.AcknowledgeMessageExt[1]/long[1]",

SEARCH_FILTERS,

"Scope=Body",

"IgnoreRedirections=Yes",

"RequestUrl=*/amf*",

LAST);

2. Check the parameter content with strcmp function:

if (strcmp(lr_eval_string("{CorrelationParameter_1}"),"123")){

lr_error_message("Error: %s", "Fail");

}else

lr_error_message("Error: %s", "Success");

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s