LoadRunner Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

How to script if no of pages to be filled will change based on the country selected from dropdown

Occasional Advisor

How to script if no of pages to be filled will change based on the country selected from dropdown

Hi,

In my current scenario, the no of pages to be filled is changing depending on the country selected

If my selected country is United States,I have to fill 5 pages

If my selected country is United Kingdom I have to fill 6 pages

 

in this scenario

I recorded using United States(5 pages)

I correlated country name and selected Random value because different vusers should select different countries in real time

If any vuser will select United Kingdom,he have to fill six pages and the pages are also changed based on the Country,

How to write script

 

Any help is appreciated

 

 

5 REPLIES
Frequent Advisor

Re: How to script if no of pages to be filled will change based on the country selected from dropdow

Hello!

 

In this case i would creae two different scripts.

Or you can combine the two flows in one script (two separate action blocks) and skip one of each depending on the selected parameter value.

 

Kind regards

Thomas

Occasional Advisor

Re: How to script if no of pages to be filled will change based on the country selected from dropdow

can I keep a if loop depending on the parameter value selected and select different blocks related to parameter value?

Frequent Advisor

Re: How to script if no of pages to be filled will change based on the country selected from dropdow

Hello!

 

Yes, of course.

You can enclose the code in each action block in an IF and skip or execute depending on the parameter value.

 

Regards

Thomas

Occasional Advisor

Re: How to script if no of pages to be filled will change based on the country selected from dropdow

Hi,

 

Thank you very much

 

 

Cheers

Bharath

HPE Expert

Re: How to script if no of pages to be filled will change based on the country selected from dropdow

Hi Bharath,

If you recognize the problem is properly solved, would you please mark the post as solved accordingly?

Thanks,
Tedy