Good Morning.,
Can you please help me in identifying the procedure for dynamically setting datasource to test scripts.......
let me explain you my scenario:
----------------------------------------------------------------------------------
ArtOfTest.WebAii.Design.Execution.TestInfo test1 = new ArtOfTest.WebAii.Design.Execution.TestInfo(Guid.NewGuid().ToString(), @"C:\Users\xxxxx\Documents\Test Studio Projects\IndividualScripts\" + row.Cells[0].Text + ".tstest");
ArtOfTest.WebAii.Design.Execution.TestInfo test2 = new ArtOfTest.WebAii.Design.Execution.TestInfo(Guid.NewGuid().ToString(), @"C:\Users\xxxxx\Documents\Test Studio Projects\IndividualScripts\" + row.Cells[1].Text + ".tstest");
ArtOfTest.WebAii.Design.Execution.TestList listcol = new ArtOfTest.WebAii.Design.Execution.TestList("testdatabind", "");
listcol.Tests.Add(test1);
listcol.Tests.Add(test2);
listcol.Settings.Web.RecycleBrowser = true;
listcol.Settings.UnexpectedDialogAction = ArtOfTest.WebAii.Core.UnexpectedDialogAction.HandleAndContinue;
listcol.SaveToListFile(@"C:\Users\hvadde\Documents\Test Studio Projects\IndividualScripts");
System.Diagnostics.ProcessStartInfo psi = new ProcessStartInfo();
psi.WorkingDirectory = @"C:\Program Files (x86)\Telerik\Test Studio 2011.1\Bin\";
psi.FileName = "ArtOfTest.Runner.exe";
psi.UseShellExecute = false;
psi.Arguments = " list=" + "\"" + @"C:\Users\xxxxx\Documents\Test Studio Projects\IndividualScripts\TestLists\testdatabind.aiilist" + "\"";
Process p = Process.Start(psi);
p.WaitForExit();
----------------------------------------------------------------------------------------------------------------------
My current scenario:
now am binding the datasources(excel files) to individual test sciprts(test1,test2) and adding then as list and executing them by running over command prompt wth artofrunner.exe...code show above...pls chk it...
My requirement :
now i need like.....thru code i want to set datasources(excel files) to individual test scripts(test1, test2)...and adding then as list and executing them ...
can you please tell/help me in identyfing the procedure for dynamically adding datasources to individual test scripts....
thnaks in advance....
am involving in the preparing the DEMO of some application using this telerik test studio....
Thanks.,
Hari