Beispiel #1
0
            public void ViewServiceListing()
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.StartTest("View A Listing");

                // View A Service Listing
                ManageListing ManageListingObj = new ManageListing();

                ManageListingObj.ViewManageListingPage();

                try
                {
                    string ActualResult = ManageListingObj.PerformAction("View");

                    //If Action Performed succesfully, page redirects to Service Detail Page
                    string ExpectedResult = "Service Detail";

                    Assert.AreEqual(ExpectedResult, ActualResult);

                    // Screenshot
                    String img = SaveScreenShotClass.SaveScreenshot(GlobalDefinitions.driver, "View Service");
                    test.Log(LogStatus.Info, "View Service Successfully" + img);
                }
                catch (Exception e)
                {
                    Base.test.Log(LogStatus.Error, "Error in View Service : " + e.Message);
                }
            }
Beispiel #2
0
            public void DeleteServiceListing()
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.StartTest("Delete A Listing");

                // Remove a Service Listing
                ManageListing ManageListingObj = new ManageListing();

                ManageListingObj.ViewManageListingPage();

                try
                {
                    string ActualResult = ManageListingObj.PerformAction("Delete");

                    //If Action Performed succesfully, record cannot be found from ListingManagement
                    string ExpectedResult = "False";

                    Assert.AreEqual(ExpectedResult, ActualResult);

                    // Screenshot
                    string img = SaveScreenShotClass.SaveScreenshot(GlobalDefinitions.driver, "Delete Service");
                    test.Log(LogStatus.Info, "Delete Service Successfully" + img);
                }
                catch (Exception e)
                {
                    Base.test.Log(LogStatus.Error, "Error in Delete Service : " + e.Message);
                }
            }
 public void WhenIUpdateTheSelectedSkillInTheListing()
 {
     ManageListingObj.PerformAction("Edit");
 }