예제 #1
0
        public void ThenThereShouldBeCircuitsInTheListReturned(int numberOfSeasons)
        {
            dynamic jsonResponse = JsonConvert.DeserializeObject(restResponse.Content);

            JArray circuitsArray = jsonResponse.MRData.CircuitTable.Circuits;

            OTAAssert.AssertEquals(null, test, circuitsArray.Count, numberOfSeasons, "The actual number of circuits in the list is equal to the expected value " + numberOfSeasons.ToString());
        }
예제 #2
0
 public void ThenHeShouldSeeAnErrorMessageStatingThatTheLoginRequestWasDenied()
 {
     OTAAssert.AssertEquals(driver, test, new LoginErrorPage().Load().GetErrorMessage(), "The username and password could not be verified.", "Error message indicating an unsuccessful login is displayed");
 }
예제 #3
0
 public void ThenHeShouldLandOnTheAccountsOverviewPage()
 {
     OTAAssert.AssertTrue(driver, test, new AccountsOverviewPage().Load().IsAt(), "User landed on the Accounts Overview page after a successful login");
 }