This is a migrated thread and some comments may be shown as answers.

Data driven testing reporting

2 Answers 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bhagyashree
Top achievements
Rank 1
Bhagyashree asked on 11 Aug 2016, 12:52 PM

Hi Team,

 

I have used a excel to bind to my script and have done two iterations.

After the script is done when i am exporting my report, i want to see the data passed for the step in the report .But for each iteration it shows the same data whereas it runs for all sets of data in the excel :

"Enter text '/demo' in 'HdfsUrlText' - DataDriven: [$(path)]"

 

I want something of the following type i.e different data passed should be visible in the result so that we can know the difference of the result:

#Iteration1

"Enter text '/demo' in 'HdfsUrlText' - DataDriven: [$(path)]"

#Iteration2

"Enter text '/demo1' in 'HdfsUrlText' - DataDriven: [$(path)]"

 Please let me know how to set the value in the text field and make it data driven.

 

2 Answers, 1 is accepted

Sort by
0
Pierre
Top achievements
Rank 1
answered on 11 Aug 2016, 02:32 PM

Hi,

I am uncertain about the desired report layout, and your actual data input. 

But please check if this it may helps you to achieve it.

So if you have a DataSource you can easly set your TextBox Value using the expression builder.
The final expression should look like this i guess...

="#Iteration"+Count(RowNumber())

="Enter text '" + Fields.myDatafieldsName + "' in ' " + Fields.where+" ' - DataDriven: "+Fields.Path

With the little information you provide i can't do more.

Regards,
Pierre
0
Katia
Telerik team
answered on 12 Aug 2016, 02:15 PM
Hi Bhagyashree,

The report is a data-driven template. The report's Detail section or a Data item will be repeated for each row from the data source - you can find out more in Connecting to Data section.

In case, you want to retrieve the number of the data row for each TextBox, this can be achieved with RowNumber() function as Pierre already mentioned, where you can optionally specify the scope:
= "row number " + RowNumber()


I hope this will help.

Regards,
Katia
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Bhagyashree
Top achievements
Rank 1
Answers by
Pierre
Top achievements
Rank 1
Katia
Telerik team
Share this question
or