F
F
frrda2014-06-18 13:03:25
Unicode
frrda, 2014-06-18 13:03:25

How to make Coded UI see unicode characters?

I am writing a Coded UI test with csv file connection with just one column. The value must be inserted into a text field in the application. The file contains all sorts of characters for testing localization: umlauts and other tailed letters. I'm saving a file through studio in unicode format, and my column name, which I refer to in the code, turns into krakozyabra, and accordingly the studio cannot find such a column.
Here is the line that refers to the file:

this.UIMap.NameAccountParams.UITxtAccountNameEditText = TestContext.DataRow["Account"].ToString();

It is advised to use Encoding, but unfortunately I am not a programmer. My fellow programmers have so far been unable to help.
Maybe someone came across connecting a file in unicode?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sumor, 2014-06-18
@Sumor

You can use an index instead of a column name.
TestContext.DataRow[0].ToString();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question