Viewing data driven test results

2 posts, 0 answers
  1. Rob
    Rob avatar
    8 posts
    Member since:
    Sep 2010

    Posted 07 Jan 2011 Link to this post

    We have about 300 different types of documents. I have a data driven test that ensures that our silverlight tool can open and display each type of document. The problem I have is that when one of them fails, the only way I have find out which document is failing is to run the failing test again and "eyeball" it until I see the offending document so I can report which one is in error. Is there a way to have the log display the data being passed into the data driven test? Or is there a report that easily displays the pass/fail of each row from a data bound test?

    Thanks,

    Rob
  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 08 Jan 2011 Link to this post

    Hi Rob,

    Data driven tests do show the data in the test log like this:

    Overall Result: Pass
    ------------------------------------------------------------
    '1/8/2011 7:51:39 PM' - Starting execution....
    '1/8/2011 7:51:39 PM' - Detected a Silverlight Test. Setting EnableSilverlight=True
    ------------------------------------------------------------
    ------------------------------------------------------------
    '1/8/2011 7:51:41 PM' - Detected DataDriven Test. Starting data iterations.
    ------------------------------------------------------------
    '1/8/2011 7:51:41 PM' - [Iteration #1: (Col1=1234)(Col2=)(Col3=)(Col4=)(Col5=)]
    ------------------------------------------------------------
    Overall Result: Pass
    '1/8/2011 7:51:42 PM' - 'Pass' : 1. Navigate to : 'http://demos.telerik.com/silverlight/#MaskedTextBox/NumericMask'
    '1/8/2011 7:52:02 PM' - 'Pass' : 2. radmaskedtextbox: click with '0' offset action.
    '1/8/2011 7:52:03 PM' - 'Pass' : 3. radmaskedtextbox: type '542' text action.
    '1/8/2011 7:52:04 PM' - 'Pass' : 4. radmaskedtextbox: type '9' text action.
    '1/8/2011 7:52:05 PM' - 'Pass' : 5. Navigate to : 'http://demos.telerik.com/silverlight/#NumericUpDown/FirstLook'
    '1/8/2011 7:52:07 PM' - 'Pass' : 6. LeftClick on Item1Textboxview
    '1/8/2011 7:52:09 PM' - 'Pass' : 7. radnumericupdown: Type '35415' into TextboxPickertextbox - DataDriven: [$(Col1)]
    '1/8/2011 7:52:10 PM' - 'Pass' : 8. LeftClick on Item2Textboxview
    ------------------------------------------------------------
    '1/8/2011 7:52:10 PM' - Overall Result: Pass
    '1/8/2011 7:52:10 PM' - Duration: [0 min: 28 sec: 776 msec]
    ------------------------------------------------------------
    ------------------------------------------------------------
    '1/8/2011 7:52:10 PM' - Overall Result: Pass
    '1/8/2011 7:52:10 PM' - Duration: [0 min: 28 sec: 783 msec]
    ------------------------------------------------------------
    '1/8/2011 7:52:10 PM' - Test completed!

    Note how the iteration number and data for that iteration is specified in the line I highlighted above. Don't you see this in your test results?

    Greetings,
    Cody
    the Telerik team
    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
Back to Top