I have Loadrunner background and I am currently using QALoad. I was trying to find the equivalent of correlation function of Loadrunner(web_reg_save_param) in QALoad.
Here is what correlation means:
1. You login and response of following is returned
Now in a following request we use the userid valye such as: ..view.jsp?uid=u1234+productid=.....
Now this value 'u1234' need be captured from response1 and be used in request2.
It's not clear to me what function to use capture the value of the user id into a variable. With loadrunner we just had to specify the left boundary and the right boundary of the desired text in the response page.
I do see a function- DoFormValueByName but it gets value only for a hidden field. What about the type of field that i mentioned?
I just found out the answer from the post of tusharpandya.
It's strange that QALoad doc conviniently forgets to mention such an important aspect of script creation.
I have just started with QALoad and maybe I will post some elementary questions here. So pls bear with my simplistic posts. I wish someone could share a simple working script file and the conductor file.
The correlation in LoadRunner is referred to as Variabilzation in QALoad.
Tha can be done using a little bit of long process.
Now p should point to the page that has the value. for example.,
In this case we want to retrieve the value "10032".In this case move the pointer to serach for the occurence of "EmpId",then parse thro' to point to "value" and then jump the pointer to point to the location of the actual number(i.e.,10032) and then u can assign the value to a variable that u can use it.
The C functions that were used to do that are
Now v1 has the required value.
Please check i don't have the reference right now.If any issues arise please revert to me.
Everything is possible and every problem has a solution.