Exemplo n.º 1
0
 // [Test, Description("Verify User is unable to upload Invalid Code Blocks")]
 public void TC_05_ValidateUploadOfInvalidCodeBlock()
 {
     try
     {
         String TestName    = (TestContext.CurrentContext.Test.Name.ToString());
         String description = TestContext.CurrentContext.Test.Properties.Get("Description").ToString();
         CreateTest(TestName, description);
         AuthoringScreenEnhancements auth = new AuthoringScreenEnhancements(driver);
         System.Threading.Thread.Sleep(8000);
         auth.ClickMedia();
         System.Threading.Thread.Sleep(8000);
         auth.ClickCodeBlocksTab();
         System.Threading.Thread.Sleep(8000);
         auth.UploadInvalidCodeBlock();
         System.Threading.Thread.Sleep(8000);
         String path1 = TakeScreenshot(driver);
         auth.SuccessScreenshot(path1, "Unable to Upload CodeBlock");
         System.Threading.Thread.Sleep(5000);
         auth.ClickDashboard();
     }
     catch (AssertionException)
     {
         fail("Assertion failed");
         throw;
     }
 }