Exemplo n.º 1
0
 public void goToLink(Adapter adapter, int index, string expectedAddress)
 {
     Report.Screenshot();
     if (adapter.Children[index].Visible)
     {
         adapter.Children[index].Click();
         Delay.Seconds(10);
         Report.Screenshot();
         string actualAddress = repo.MyAssaysDesktopMyAssaysInternetE.Address.TextValue;
         if (actualAddress.Equals(expectedAddress))
         {
             Report.Success("Link works correctly.");
         }
         else
         {
             Report.Failure("Link does not work correctly.");
         }
         KillProcessHelper.KillProcess("iexplore");
         Delay.Seconds(2);
     }
     else
     {
         Report.Failure("Link is not visible.");
     }
 }
Exemplo n.º 2
0
        public void ValidateChartForAllXMLs()
        {
            var xmlFolder = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "ChartViewer", "XML");
            var files     = Directory.GetFiles(xmlFolder);

            foreach (var file in files)
            {
                LaunchChartViewer(file);
                String name = file.Split('\\')[file.Split('\\').Length - 1];
                //SaveBitmapPattern(name.Replace("xml", "png"));
                CheckControlImage(name.Replace("xml", "png"));

                KillProcessHelper.KillProcess("TestChartViewer");
            }
        }
Exemplo n.º 3
0
 public void KillApp(string appName)
 {
     Report.Screenshot();
     KillProcessHelper.KillProcess(appName);
 }
 public void CloseAnalysis()
 {
     KillProcessHelper.KillProcess("MyAssays.Desktop.Analysis");
 }