Beispiel #1
0
 public void PostTestExecution()
 {
     if (TestContext.CurrentTestOutcome == UnitTestOutcome.Failed)
     {
         reportUtils.AddLogs(Status.Fail, "One or more step failed");
     }
     else if (TestContext.CurrentTestOutcome == UnitTestOutcome.Aborted)
     {
         reportUtils.AddLogs(Status.Skip, "Test case aborted for some reason");
     }
 }
 public void Setup()
 {
     requestFactory = new StudentRequestFactory();
     endpointUrl    = ConfigurationManager.AppSettings["endpointUrl"].ToString();
     // endpointUrl = "http://thetestingworldapi.com";
     studentGetAllResource = "/api/studentsDetails";
     studentPOSTResource   = "/api/studentsDetails";
     reportUtils.CreatetestCase("Pre-requisite");
     reportUtils.AddLogs(Status.Info, $"Executing test case at environment");
 }