public override Collection<Test> ParseFile(string fileName, CenarioExecucaoTestEnum cenario) { Collection<Test> tests = new Collection<Test>(); Test test = new Test(); Command command = CommandFactory.Parse(new string[] { "GotoHome", "Goto", "http://www.google.co.uk", string.Empty, string.Empty }); test.Commands.Add(command); test.Commands.Add(CommandFactory.Parse(new string[] { "GotoHomeb", "Goto", "testpage1b.htm", string.Empty, string.Empty })); test.Id = "test1"; tests.Add(test); test = new Test(); command = CommandFactory.Parse(new string[] { "GotoHome2", "Goto", "testpage2.htm", string.Empty, string.Empty }); test.Commands.Add(command); test.Id = "2"; tests.Add(test); return tests; }
/// <summary> /// Parses the file and returns a Collection of <see cref="Test">tests</see>. /// </summary> /// <param name="fileName">The filename.</param> /// <returns></returns> public virtual Collection<Test> ParseFile(string fileName, CenarioExecucaoTestEnum cenario) { return null; }
/// <summary> /// Initializes the <see cref="TestManager"/> from the specified <see cref="FileName"/>. /// </summary> public void Load(CenarioExecucaoTestEnum cenario) { //First, decides wich Provider for file type this.tests = WaxDataManager.Provider.ParseFile(this.FileName, cenario); if (this.LoadComplete != null) { this.LoadComplete(this, EventArgs.Empty); } }