mardi 31 mars 2015

Coded UI: Not able to uses CSV file in script in TFS solution explorer while it is working fine on the local machine.

I have done the below steps, it is working fine on my local machine but when i worked with TFS solution explore below errror


Steps: 1. Created data.csv file. 2. Advance save as a unicode (utf-8 without signature Codepage-65001). 3. Make data.csv file as copy if new


Error: The character encoding for the file D:\Testcase\data.csv has changed. Your source control provider may have problems managing files with this type of encoding. For example, if you save an ANSI-encoded file as UTF-8 you may not be able to merge or show differences.


Code: [DataSource("Microsoft.VisualStudio.TestTools.DataSource.CSV", "|DataDirectory|\data.csv", "data#csv", DataAccessMethod.Sequential), DeploymentItem("data.csv"), TestMethod] public void CodedUITestMethod1() { Console.WriteLine(TestContext.DataRow["firstname"].ToString()); // To generate code for this test, select "Generate Code for Coded UI Test" from the shortcut menu and select one of the menu items. }


Aucun commentaire:

Enregistrer un commentaire