How to Corelate Manually?

Showing Answers 1 - 12 of 12 Answers

Amit Shah

  • Nov 26th, 2007
 

Correlation is needed for the value which is dynamicaly generated by the server, and that value is again send by the the client. For doing the correlation we have....... 1st way):-to record same script two time and find the diff between the two recorded script using windiff option, now find out, what is the diff between them, get the value which may dynamically changing by the server eg. Session id, now copy that value from any script and find the same in Generation log of same script, find the left and right boundry of that value, now come to recorded script, goto to insert into step option, and insert correlation step, with specifying the option of left and right boundry(which u can find in generation log).............now where exactly  we can insert thta correlation step....so for that copy the left boundry of the dynamic value, serch that value in the replay log, after searching click that line there only that line will focus automatically on line in the sript ,so at the first of that line we have to insert the step.......this processes is called manual correlation.

  Was this answer useful?  Yes

subhashini

  • Nov 27th, 2007
 

We have a function web_reg_save_param , here we define the instance which is generated between the left and right boundaries. this function saves any auto generated instance in this boundaries. This is what we call as manual correlation

  Was this answer useful?  Yes


Here is the Example for correlation.

In the Below Script:
web_reg_save_param("Queries1",
  "LB/IC=src="ElinkTop.asp?querys=",
  "RB/IC=">",
  "NotFound=ERROR",
  "Search=All",
  LAST);


Queries1 is Cor Name
LB/IC=Left Bound and Igonre Case
RB/IC=Left Bound and Igonre Case
Not Found=If the LB,Rb is not found in u r script then throughs Error
Search = All means searchs all the the body... etc
one more thing is Ord is Ordinal if the value is 2 it checks the second found tag.
All the CorName should be Unique.

web_reg_save_param is a registration type function. It registers a request to find and save a text string within the Web page that was retrieved. The operation is performed only after executing the next action function , such as web_url.


Some times the LB, RB is exists and found corectly also throguhs error because of memory. To reduce above problem u should use 
web_set_max_html_param_len("VALUE");
Example Value=50000 as per u r application.

This is very imp function and useful feture in LR..
Thanks and Regards,
--Lalith Kumar Chaganti
 

  Was this answer useful?  Yes

Record two scripts for a same scenario with different inputs.
Now compare these two scripts by using WDIFF. You can download it freely in google.
Take the junk values and Find the left boundary and right boundary in "Recording Log"
Substitute the values of LB abd RB using web_reg_save_param function.

You can contact me at prajeshbe@gmail.com to know more about manual correlation

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions