get the row number and write sth into excel

4 posts, 0 answers
  1. Shirley
    Shirley avatar
    4 posts
    Member since:
    Oct 2011

    Posted 10 Nov 2011 Link to this post

    Hi,

    I am creating a C# coded test to upload data into a system with data driven. when one data failed to upload, I need to get the row number of excel in which this data is. and then write the word "failed" into this row's column 1. I want to know that how can i code in my coded step?

    Another question: I need to verify the border color of the Element to check whether the input data is correct or not. When input the corrupt data into the textbox/ radcombobox, the border color will change to be red. How can i get the value of the border color?

    Thank you very much, and  a little urgent!
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 15 Nov 2011 Link to this post

    Hi Shirley,
        all of this is very doable.

    I've actually decided to make a Code Sample article out of your use case. Check it out here:
    http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/writeintodatasource.aspx

    On test colors:
    This is easily doable. You can test colors with the Advanced Verification Builder:
    http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/verifications/advanced-verification.aspx

    Testing colors in Silverlight is a bit more complex. Let me know if your app is Silverlight-based.

    All the best,
    Stoich
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. Shirley
    Shirley avatar
    4 posts
    Member since:
    Oct 2011

    Posted 18 Nov 2011 Link to this post

    Hi Stoich,

    The app is silverlight-based, the  element's  color attribute is borderbrush, it is a brush.
    Can I compare it the Brushes.Red?

    Best Regards
    Shirley
  4. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 23 Nov 2011 Link to this post

    Hi Shirley,
    check out this article which demonstrates how to add a color verification in Silverlight:
    http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/silverlight/verify-color-silverlight.aspx

    Best wishes,
    Stoich
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top