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

get the row number and write sth into excel

3 Answers 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Shirley
Top achievements
Rank 1
Shirley asked on 10 Nov 2011, 10:02 AM
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!

3 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 15 Nov 2011, 05:32 PM
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
0
Shirley
Top achievements
Rank 1
answered on 18 Nov 2011, 06:16 AM
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
0
Stoich
Telerik team
answered on 23 Nov 2011, 08:24 PM
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
Tags
General Discussions
Asked by
Shirley
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Shirley
Top achievements
Rank 1
Share this question
or