Data driven testing reporting

3 posts, 0 answers
  1. Bhagyashree
    Bhagyashree avatar
    2 posts
    Member since:
    Aug 2016

    Posted 11 Aug Link to this post

    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. Pierre
    Pierre avatar
    56 posts
    Member since:
    Jun 2016

    Posted 11 Aug Link to this post

    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
  3. DevCraft banner
  4. Katia
    Admin
    Katia avatar
    309 posts

    Posted 12 Aug Link to this post

    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
Back to Top