Hi, Thank you for your query. In general, we can do correlation for price (using function web_reg_Save_param_ex). While using web_reg_save_param, use option ordinal=All. this will capture all the values of flight price. Once we captured all the price values, then we need to compare and select which value to choose. Hope this helps.
@pratheep Kumar - the script should be some thing like this. Declare variables in starting: int Flight_Count; int min; char Flight_2Char[100]; //This is important to declare as char int Flight_2Int; int i; then once you have captured the corelated value. use below code. Assuming Flight is the correlated parameter name; Flight_Count= atoi(lr_eval_string("{Flight_count}")); min=atoi(lr_eval_string("{Flight_1}")); for(i=2;iFlight_2Int) { max=Flight_2Int; } } lr_save_int(min, "MinValue"); Then MinValue now is the Lr parameter which can be passed as required. Hope this answers you question.
Glad this solves your query, I will surely plan some session on Correlation in future. I hope you would have already subscribed to my channel so that you can get regular updates.
This video is really Informative specially those who want career in
Performance testing. Thank you Nikhil
Thank you Sujeet for the comments.
Hi Nikhil
Thank you for very helpful and an Excellent session.
Request you to create a hands-on session on ReadyAPI automation tool.
Thank You for the comments. Noted your point.
Hi , how to select cheapest price flight booking in random. It will helpful to me.
Hi, Thank you for your query. In general, we can do correlation for price (using function web_reg_Save_param_ex). While using web_reg_save_param, use option ordinal=All. this will capture all the values of flight price. Once we captured all the price values, then we need to compare and select which value to choose. Hope this helps.
@@performancetestinghub7684Hi Sir, yes it's correct . In logically how to write a script to compare after capture the value.
@pratheep Kumar - the script should be some thing like this.
Declare variables in starting:
int Flight_Count;
int min;
char Flight_2Char[100]; //This is important to declare as char
int Flight_2Int;
int i;
then once you have captured the corelated value. use below code.
Assuming Flight is the correlated parameter name;
Flight_Count= atoi(lr_eval_string("{Flight_count}"));
min=atoi(lr_eval_string("{Flight_1}"));
for(i=2;iFlight_2Int)
{
max=Flight_2Int;
}
}
lr_save_int(min, "MinValue");
Then MinValue now is the Lr parameter which can be passed as required.
Hope this answers you question.
@@performancetestinghub7684 thanks sir. Please do a session like this sir . It will help us to overcome the challenges.im non IT background.
Glad this solves your query, I will surely plan some session on Correlation in future. I hope you would have already subscribed to my channel so that you can get regular updates.