public void GetURL_Testing() { ActBrowserElement act = new ActBrowserElement(); act.LocateBy = eLocateBy.ByName; act.ControlAction = ActBrowserElement.eControlAction.GetPageURL; act.AddNewReturnParams = true; act.Active = true; mBF.CurrentActivity.Acts.Add(act); mBF.CurrentActivity.Acts.CurrentItem = act; mGR.RunAction(act, false); Assert.AreEqual(act.Status, eRunStatus.Passed, "Action Status"); string actual = act.GetReturnParam("Actual"); string expected = @"file://C:\Ginger workspace\Devs\GingerNextVer_Dev\UnitTests\bin\Debug\TestResources\PBTestApp\Browser.html"; // Documents\PBTestApp\Browser.html"; Assert.AreEqual(actual, expected, "True"); Assert.AreEqual(act.Error, null, "Act.Error"); }
public void GetURL_Testing() { ActBrowserElement act = new ActBrowserElement(); act.LocateBy = eLocateBy.ByName; act.ControlAction = ActBrowserElement.eControlAction.GetPageURL; act.AddNewReturnParams = true; act.Active = true; mBF.CurrentActivity.Acts.Add(act); mBF.CurrentActivity.Acts.CurrentItem = act; mGR.RunAction(act, false); Assert.AreEqual(act.Status, eRunStatus.Passed, "Action Status"); string actual = act.GetReturnParam("Actual"); string expected = @"file://" + TestResources.GetTestResourcesFolder("PBTestApp") + @"\Browser.html"; Assert.AreEqual(actual, expected, "True"); Assert.AreEqual(act.Error, null, "Act.Error"); }