Data binding a URL

0 Answers 122 Views
Test Execution
Adrian
Top achievements
Rank 2
Iron
Iron
Iron
Adrian asked on 12 May 2022, 01:14 AM

HI,

I have data binded an excel spreadsheet with a field called 'URL'.  It contains completely different URL's to the Base URL set for the project.

When I run a step 'Navigate to : " - DataDriven: [$(URL)]" it still takes me to the Base URL set for the project.

I don't want to remove the Base URL for the project as all tests rely on this.

How do I resolve this?

Cheers

 

 

Elena
Telerik team
commented on 16 May 2022, 11:50 AM

Hi Adrian, 

Can you, please, elaborate on the specific setup for the 'Navigate' step? Do you use both the NavigateUrl and BaseUrl fields in the step? And which is the field you have set to use the data from the Excel file? Have you tried to data bind the other field? 

It will be great if you can send me a screenshot of the step and its binding - even if the actual Urls is blurred or not visible, this will be sufficient for me to get the details for the case. 

I am looking forward to hearing back from you.

Regards,
Elena

Adrian
Top achievements
Rank 2
Iron
Iron
Iron
commented on 17 May 2022, 12:43 AM | edited

Hi Elena,

The base url set for the project is http:..adl-sim-301-d - compare mode = FullPath.

Properties for step (refer image) - Navigate to :: '' - DataDriven: [$(URL)].

Data Binding is set in Navigate URL which contains values from the spreadsheet (refer image).

Cheers

Adrian

 

Elena
Telerik team
commented on 17 May 2022, 11:12 AM

Hi Adrian, 

Thank you for your prompt response. I tried the same on my end and it worked as expected, so I wonder what might be different for yours and mine projects. Can you, please, use the zipped test attached with this response and execute it on your end? 

It is quite simple test with a navigate step, which is data driven with internal data (that shouldn't bring any difference for the execution). But this should be sufficient to get some details for the run of similar scenario on your end.

In addition to this you can generate the Test Studio application log while running the original test, which seems to not pick the data from external file. Along with it, please, collect the execution log for that same test run. 

Thank you for your cooperation once again!

Regards,
Elena

Adrian
Top achievements
Rank 2
Iron
Iron
Iron
commented on 18 May 2022, 05:37 AM

Thanks for your help Elena, this is working as expected now.  I didn't actually make any changes it just started working when I ran it today, maybe I didn't have something configured quite right.  All good now.
Elena
Telerik team
commented on 18 May 2022, 12:01 PM

Hi Adrian, 

Thanks for your cooperation. I am pleased to know you managed to set everything and the data binding works as expected.

No answers yet. Maybe you can help?

Tags
Test Execution
Asked by
Adrian
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or