From 40ed6e34a6baab9ec335b0ed04ec81f6874735a6 Mon Sep 17 00:00:00 2001 From: nekrashevicha2 Date: Thu, 12 Dec 2024 11:24:01 -0500 Subject: [PATCH 01/11] award nom --- .../Features/VIBEAppreciationRequest.feature | 24 ++++- .../Pages/AwardNominationPage.java | 40 +++++++++ .../Steps/AwardNominationSteps.java | 90 +++++++++++++++++++ .../AwardNominationStepsImplementation.java | 62 +++++++++++++ 4 files changed, 215 insertions(+), 1 deletion(-) diff --git a/src/test/java/ServiceNow/AwardNomination/Features/VIBEAppreciationRequest.feature b/src/test/java/ServiceNow/AwardNomination/Features/VIBEAppreciationRequest.feature index 002109cd2..049c0e63d 100644 --- a/src/test/java/ServiceNow/AwardNomination/Features/VIBEAppreciationRequest.feature +++ b/src/test/java/ServiceNow/AwardNomination/Features/VIBEAppreciationRequest.feature @@ -2,7 +2,7 @@ Description: This feature file contains scenarios relating to VIBE Peer-to-Peer Appreciation Program - @selenium @Alena @Regression @AWARDNOM-1 @AWARDNOM-10 + @selenium @Alena @AWARDNOM-1 @AWARDNOM-10 Scenario: Submit VIBE Peer-to-Peer Appreciation Program request Given Submitter User logged in to VIBE Peer-to-Peer Appreciation Program application via Portal And User navigates to VIBE Peer-to-Peer Appreciation Program via Services menu @@ -17,5 +17,27 @@ When Submitter User submits VIBE Peer-to-Peer Appreciation Program request Then Submitter User can verify they are redirected to general tickets view page + @selenium @Alena @Regression @AWARDNOM-31 @AWARDNOM-22 + Scenario: Submit VIBE Peer-to-Peer Appreciation Program request + Given Submitter User logged in to VIBE Peer-to-Peer Appreciation Program application via Portal + And User navigates to Tickets tab + And User opens the last VIBE Peer-to-Peer Appreciation Program request submitted + And User can confirm that the ticket's status is "Work in Progress" + And User can verify that Approval status is "Requested" + And User can confirm Cancel button is displayed + And User can confirm Add Watchers button is displayed + And User can confirm Add Attachment button is displayed + When User clicks Cancel button + Then User can see Cancel confirmation modal + When User clicks Add Watchers button + And User adds "Anna Nicholson" as a watcher + Then User can see that Watch List ticket field is populated with "Anna Nicholson" name + When User adds attachment + Then User can verify that attachment is added + + + + + diff --git a/src/test/java/ServiceNow/AwardNomination/Pages/AwardNominationPage.java b/src/test/java/ServiceNow/AwardNomination/Pages/AwardNominationPage.java index 8ea478273..ed483bb1c 100644 --- a/src/test/java/ServiceNow/AwardNomination/Pages/AwardNominationPage.java +++ b/src/test/java/ServiceNow/AwardNomination/Pages/AwardNominationPage.java @@ -67,6 +67,46 @@ public class AwardNominationPage { @FindBy(xpath = "//span[.=' Tickets ']") public WebElement sectionTickets; + /** Last submitted VIBE Ticket */ + @FindBy(xpath = "(//h4[.='VIBE Peer-to-Peer Appreciation Program'])[1]") + public WebElement lastSubmittedVIBETicket; + + /** ticket status Page View */ + @FindBy(xpath = "//div[contains(text(),' Work in Progress')]") + public WebElement ticketsStatusPageView; + + /** approval status Page View */ + @FindBy(xpath = "//div[contains(text(),' Requested')]") + public WebElement approvalStatusPageView; + + /** Cancel button */ + @FindBy(xpath = "//span[contains(text(),'Cancel')]") + public WebElement cancelButton; + + /** Add Watchers button */ + @FindBy(xpath = "//span[contains(text(),'Add Watchers')]") + public WebElement addWatchersButton; + + /** Add Attachment button */ + @FindBy(xpath = "(//span[@class='glyphicon glyphicon-paperclip'])[1]") + public WebElement addAttachmentButton; + + /** Cancel My Ticket modal */ + @FindBy(xpath = "//h3[.='Cancel My Ticket']") + public WebElement modalCancelMyTicket; + + /** text Field Add Watchers */ + @FindBy(xpath = "//input[@class='select2-input select2-default']") + public WebElement textFieldAddWatchers; + + /** Save Changes confirmation modal button */ + @FindBy(xpath = "//span[contains(text(),'Save Changes')]") + public WebElement saveChangesConfModalButton; + + /** Watch list field */ + @FindBy(xpath = "(//div[@class='ng-binding ng-scope'])[5]") + public WebElement watchListField; + public AwardNominationPage() { PageFactory.initElements(WebDriverUtils.webDriver, this); } diff --git a/src/test/java/ServiceNow/AwardNomination/Steps/AwardNominationSteps.java b/src/test/java/ServiceNow/AwardNomination/Steps/AwardNominationSteps.java index c64846329..d2b7bb695 100644 --- a/src/test/java/ServiceNow/AwardNomination/Steps/AwardNominationSteps.java +++ b/src/test/java/ServiceNow/AwardNomination/Steps/AwardNominationSteps.java @@ -1,10 +1,13 @@ package ServiceNow.AwardNomination.Steps; import appsCommon.PageInitializers.PageInitializer; +import com.nci.automation.web.CommonUtils; import io.cucumber.java.en.Given; import io.cucumber.java.en.Then; import io.cucumber.java.en.When; +import static Hooks.Hooks.softAssert; + public class AwardNominationSteps extends PageInitializer { @Given("Submitter User logged in to VIBE Peer-to-Peer Appreciation Program application via Portal") @@ -66,4 +69,91 @@ public void submitter_user_submits_vibe_peer_to_peer_appreciation_program_reques public void submitter_user_can_verify_they_are_redirected_to_general_tickets_view_page() { awardNominationStepsImplementation.verifySectionTicketsDisplayed(); } + + /** + * verify User is in Tickets tab + */ + @Given("User navigates to Tickets tab") + public void user_navigates_to_tickets_tab() { + softAssert.assertTrue(awardNominationPage.sectionTickets.isDisplayed()); + } + + /** + * User navigates to last VIBE ticket + */ + @Given("User opens the last VIBE Peer-to-Peer Appreciation Program request submitted") + public void user_opens_the_last_vibe_peer_to_peer_appreciation_program_request_submitted() { + CommonUtils.clickOnElement(awardNominationPage.lastSubmittedVIBETicket); + } + + @Given("User can confirm that the ticket's status is {string}") + public void user_can_confirm_that_the_ticket_s_status_is(String statusWorkInProgress) { + awardNominationStepsImplementation.verifyLastTicketsStatus(statusWorkInProgress); + } + + @Given("User can verify that Approval status is {string}") + public void user_can_verify_that_approval_status_is(String approvalStatusPageView) { + awardNominationStepsImplementation.verifyApprovalStatus(approvalStatusPageView); + } + + @Given("User can confirm Cancel button is displayed") + public void user_can_confirm_cancel_button_is_displayed() { + awardNominationStepsImplementation.verifyCancelButtonDisplayed(); + } + + @Given("User can confirm Add Watchers button is displayed") + public void user_can_confirm_add_watchers_button_is_displayed() { + awardNominationStepsImplementation.verifyAddWatchersButtonDisplayed(); + } + + @Given("User can confirm Add Attachment button is displayed") + public void user_can_confirm_add_attachment_button_is_displayed() { + awardNominationStepsImplementation.verifyAddAttachmentButtonDisplayed(); + } + + /** + * User clicks Cancel button + */ + @When("User clicks Cancel button") + public void user_clicks_cancel_button() { + CommonUtils.clickOnElement(awardNominationPage.cancelButton); + } + + /** + * verify Cancel confirmation modal is displayed + */ + @Then("User can see Cancel confirmation modal") + public void user_can_see_cancel_confirmation_modal() { + softAssert.assertTrue(awardNominationPage.modalCancelMyTicket.isDisplayed()); + } + + /** + * verify clicks Add Watchers button + */ + @When("User clicks Add Watchers button") + public void user_clicks_add_watchers_button() { + CommonUtils.clickOnElement(awardNominationPage.addWatchersButton); + } + + @When("User adds {string} as a watcher") + public void user_adds_as_a_watcher(String watcher) { + awardNominationStepsImplementation.addWatcher(watcher); + } + + @Then("User can see that Watch List ticket field is populated with {string} name") + public void user_can_see_that_watch_list_ticket_field_is_populated_with_name(String watcher) { + awardNominationStepsImplementation.verifyWatcherAdded(watcher); + } + + @When("User adds attachment") + public void user_adds_attachment() { + // Write code here that turns the phrase above into concrete actions + throw new io.cucumber.java.PendingException(); + } + + @Then("User can verify that attachment is added") + public void user_can_verify_that_attachment_is_added() { + // Write code here that turns the phrase above into concrete actions + throw new io.cucumber.java.PendingException(); + } } diff --git a/src/test/java/ServiceNow/AwardNomination/StepsImplementation/AwardNominationStepsImplementation.java b/src/test/java/ServiceNow/AwardNomination/StepsImplementation/AwardNominationStepsImplementation.java index 3440be5f4..ed60903a5 100644 --- a/src/test/java/ServiceNow/AwardNomination/StepsImplementation/AwardNominationStepsImplementation.java +++ b/src/test/java/ServiceNow/AwardNomination/StepsImplementation/AwardNominationStepsImplementation.java @@ -113,4 +113,66 @@ public void clickSubmitButton() { public void verifySectionTicketsDisplayed() { softAssert.assertTrue(awardNominationPage.sectionTickets.isDisplayed()); } + + /** + * verify last ticket status + * @param statusWorkInProgress + */ + public void verifyLastTicketsStatus(String statusWorkInProgress) { + CommonUtils.waitForVisibility(awardNominationPage.ticketsStatusPageView); + softAssert.assertEquals(awardNominationPage.ticketsStatusPageView, statusWorkInProgress); + } + + /** + * verify approval status + * @param approvalStatus + */ + public void verifyApprovalStatus(String approvalStatus) { + CommonUtils.waitForVisibility(awardNominationPage.approvalStatusPageView); + softAssert.assertEquals(awardNominationPage.approvalStatusPageView, approvalStatus); + } + + /** + * verify Cancel button is displayed + */ + public void verifyCancelButtonDisplayed() { + CommonUtils.waitForVisibility(awardNominationPage.cancelButton); + softAssert.assertTrue(awardNominationPage.cancelButton.isDisplayed()); + } + + /** + * verify Add Watchers button is displayed + */ + public void verifyAddWatchersButtonDisplayed() { + CommonUtils.waitForVisibility(awardNominationPage.addWatchersButton); + softAssert.assertTrue(awardNominationPage.addWatchersButton.isDisplayed()); + } + + /** + * verify Add Attachment button is displayed + */ + public void verifyAddAttachmentButtonDisplayed() { + CommonUtils.waitForVisibility(awardNominationPage.addAttachmentButton); + softAssert.assertTrue(awardNominationPage.addAttachmentButton.isDisplayed()); + } + + /** + * add Watcher + * @param watcher + */ + public void addWatcher(String watcher) { + CommonUtils.waitForVisibility(awardNominationPage.textFieldAddWatchers); + CommonUtils.sendKeysToElement(awardNominationPage.textFieldAddWatchers,watcher); + awardNominationPage.textFieldAddWatchers.sendKeys(Keys.TAB); + CommonUtils.clickOnElement(awardNominationPage.saveChangesConfModalButton); + } + + /** + * verify Watcher is added + * @param watcher + */ + public void verifyWatcherAdded(String watcher) { + CommonUtils.waitForVisibility(awardNominationPage.watchListField); + softAssert.assertTrue(awardNominationPage.watchListField.getText().equals(watcher)); + } } From c0082c6ca4c496ddfc3394e8635a384b68a70ecc Mon Sep 17 00:00:00 2001 From: nekrashevicha2 Date: Thu, 12 Dec 2024 12:01:00 -0500 Subject: [PATCH 02/11] upd --- .../nci/automation/web/TestProperties.java | 2 +- .../CADSR/steps/NativeViewSteps.java | 34 +++++++++--------- .../CADSR/steps/ServicePortalSteps.java | 8 ++--- .../RCMDB/features/NativeView.feature | 13 ++++--- .../RCMDB/steps/BusinessCaseFormSteps.java | 28 +++++++-------- .../RCMDB/steps/PortalViewSteps.java | 32 ++++++++--------- .../BusinessCaseFormSteps.java | 4 +-- .../stepsImplementation/PortalViewSteps.java | 32 ++++++++--------- .../Attachments/AWARD_NOMINATION.docx | Bin 0 -> 13195 bytes .../Features/VIBEAppreciationRequest.feature | 2 +- .../Pages/AwardNominationPage.java | 4 +++ .../Steps/AwardNominationSteps.java | 9 ++--- .../AwardNominationStepsImplementation.java | 10 ++++-- 13 files changed, 94 insertions(+), 84 deletions(-) create mode 100644 src/test/java/ServiceNow/AwardNomination/Attachments/AWARD_NOMINATION.docx diff --git a/src/main/java/com/nci/automation/web/TestProperties.java b/src/main/java/com/nci/automation/web/TestProperties.java index e142fa91b..0838be035 100644 --- a/src/main/java/com/nci/automation/web/TestProperties.java +++ b/src/main/java/com/nci/automation/web/TestProperties.java @@ -4,7 +4,7 @@ public class TestProperties { public static String ENV = "test"; public static String BROWSER = "chrome"; - public static boolean HEADLESS = true; + public static boolean HEADLESS = false; public static int SET_SLOW_MO_TIME = 1000; /** diff --git a/src/test/java/PLATFORM_BUSINESS/CADSR/steps/NativeViewSteps.java b/src/test/java/PLATFORM_BUSINESS/CADSR/steps/NativeViewSteps.java index 669d9ebd6..53a5ec63d 100644 --- a/src/test/java/PLATFORM_BUSINESS/CADSR/steps/NativeViewSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/CADSR/steps/NativeViewSteps.java @@ -33,14 +33,14 @@ public void login() throws Exception { loginStepsImpl.clickOnSignInButton(); } - @Then("Go to Native view of the application") + @Then("Go to Native viewkkkk of the application") public void getNativeView() { nativeViewPage.clickOnNativeView(); } - - + + @Then("Go to CADSR Requests") public void clickonCADSRRequest() throws InterruptedException { nativeViewPage.clickOnCADSRRequest(); @@ -49,7 +49,7 @@ public void clickonCADSRRequest() throws InterruptedException { @Then("User should see default columns for incident grid") public void viewDefaultColumns() throws InterruptedException { nativeViewPage.viewDefaultColumns(); - + } @Then("Go to All Business Case") @@ -118,14 +118,14 @@ public void elevatePermission() throws InterruptedException { @Then("User should see Save, Add Attachments and Submit button") public void user_should_see_Save_Add_Attachments_and_Submit_button() { nativeViewPage.switchToFrame(); - + Assert.assertTrue("Save button is not present on the screen", nativeViewPage.isElementPresent(nativeViewPage.saveButton)); Assert.assertTrue("Add Attachement button is not present on the screen", nativeViewPage.isElementPresent(nativeViewPage.addAttachemdnBottom)); Assert.assertTrue("Submit button is not present on the screen", nativeViewPage.isElementPresent(nativeViewPage.submitButtonOnNewRequestForm)); - + } @@ -133,17 +133,17 @@ public void user_should_see_Save_Add_Attachments_and_Submit_button() { public void start_new_Requst() { nativeViewPage.startANewRequest(); } - - + + @Then("User should see available different choices of status") public void validateStatusCHoices() throws Exception { nativeViewPage.allSelectOptions(); - + } - + @Then("take the final page screenshot and add it to the report") public void logScreenshot() { - + } @Then("Set Assigned to and save") @@ -155,7 +155,7 @@ public void set_assigned_to() { @Then("Validate assigned to value in child ticket") public void validate_assigned_to() throws InterruptedException { - + String value = nativeViewPage.getAssignedToValue(); Assert.assertTrue("Assigned to value in child ticket is not correct", "Janice Knable".equalsIgnoreCase(value)); } @@ -163,12 +163,12 @@ public void validate_assigned_to() throws InterruptedException { @Then("User should see Status field") public void user_should_see_Status_field() { nativeViewPage.validateTheLabelAsStatus(); - + } @Then("Validate parent ticket reference") public void validatePerenetTicketReference() { - + nativeViewPage.validateParentTicketReference(); } @@ -179,7 +179,7 @@ public void validateTextOnLandingPage() { @Then("validate text on request form page") public void validateTextonRequestFormPage() { - + nativeViewPage.validateTextOnRequestFormPage(); } @@ -191,12 +191,12 @@ public void enterOneMoreEmailId() { @Then("validate page footer") public void validatePageFooter() { nativeViewPage.checkIfPageFooterISasExpected(); - + } @Then("validate that the list of organiation is as expected") public void validateTheListOfOrganization() throws Exception { nativeViewPage.validateTheListOfOrganization(); - + } } diff --git a/src/test/java/PLATFORM_BUSINESS/CADSR/steps/ServicePortalSteps.java b/src/test/java/PLATFORM_BUSINESS/CADSR/steps/ServicePortalSteps.java index a23caa9dc..69738f125 100644 --- a/src/test/java/PLATFORM_BUSINESS/CADSR/steps/ServicePortalSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/CADSR/steps/ServicePortalSteps.java @@ -405,8 +405,8 @@ public void validatePriority() throws InterruptedException { } - @Then("Go to native view") - public void getNativeView() { + @Then("Go to native viewmm") + public void getNativeViewm() { servicePortalPage.clickOnNativeView(); } @@ -449,8 +449,8 @@ public void assertCurationCountAs10() { } - @Then("Verify Email notification with subject as {string}") - public void verifyEmail(String subject) throws InterruptedException { + @Then("Verify Email notificationkkk with subject as {string}") + public void verifyEmailkkk(String subject) throws InterruptedException { boolean status = servicePortalPage.verifyEmail(subject); Assert.assertEquals(true, status); diff --git a/src/test/java/PLATFORM_BUSINESS/RCMDB/features/NativeView.feature b/src/test/java/PLATFORM_BUSINESS/RCMDB/features/NativeView.feature index 2f6397c34..d489f0304 100644 --- a/src/test/java/PLATFORM_BUSINESS/RCMDB/features/NativeView.feature +++ b/src/test/java/PLATFORM_BUSINESS/RCMDB/features/NativeView.feature @@ -16,14 +16,14 @@ Feature: Recordmanagement feature files Then Fill all the details Then Click on submit Then Validate added new record - + @SNOWRMDB-13 @SNOWRMDB-25 Scenario: Validate Tracking log Given user navigates to the Record management home page Then User logins to the application for RCMDB Then User clicks on all tracking records Then Validate tracking log - + @SNOWRMDB-32 Scenario: Customer Name Manually Entered not accepted Given user navigates to the Record management home page @@ -31,14 +31,14 @@ Feature: Recordmanagement feature files Then User clicks on create new record button Then Enter customer name manually Then User should see error message - + @SNOWRMDB-24 Scenario: Validate character length for fields Given user navigates to the Record management home page Then User logins to the application for RCMDB Then User clicks on create new record button Then Enter Disposition Authority more than accepted limit - + @RCMDB Scenario: Naviate to the RM Teacking record Import and create new tracking record Given user navigates to the Record management home page @@ -47,7 +47,7 @@ Feature: Recordmanagement feature files Then Click on new RM Tracking record Then Fill all the record details Then Click on submit record - + @QuaterlyCost Scenario: Naviate to the Quaterly Costs and create new Quaterly Cost Given user navigates to the Record management home page @@ -57,5 +57,4 @@ Feature: Recordmanagement feature files Then Fill all the Quaterly Cost details Then Click on submit button Then Validate added recorded - - \ No newline at end of file + diff --git a/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/BusinessCaseFormSteps.java b/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/BusinessCaseFormSteps.java index 7a513d501..6889dd2a3 100644 --- a/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/BusinessCaseFormSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/BusinessCaseFormSteps.java @@ -113,7 +113,7 @@ public void FillBusinessForm() throws InterruptedException { businessCaseFormPage.enterTextInBusinessNeedBox("TestingAutomtaionTesting"); } - @Then("Go to Native view of application") + @Then("Go to Native viewkkkk of application") public void getNativeView() { businessCaseFormPage.clickOnNativeView(); } @@ -138,8 +138,8 @@ public void askForMoreInfo() { businessCaseFormPage.askForMoreInfoOnRequestForm(); } - @Then("Verify Email notification with subject as {string}") - public void verifyEmail(String subject) throws InterruptedException { + @Then("Verify Email notification withkk subject as {string}") + public void verifyEmailmm(String subject) throws InterruptedException { boolean status = businessCaseFormPage.verifyEmail(subject); Assert.assertEquals(true, status); @@ -272,15 +272,15 @@ public void Fill_all_the_details() throws InterruptedException { } - @When("User logins to the application for RCMDB") - public void login() throws Exception { - if (loginStepsImpl.isLoginButtonDisplayed()) { - loginStepsImpl.clckOnLoginButton(); - } - loginStepsImpl.enterUsername(""); - String decyptedPass = EncryptionUtils.decrypt(""); - loginStepsImpl.enterPassword(decyptedPass); - CucumberLogUtils.logScreenshot(); - loginStepsImpl.clickOnSignInButton(); - } +// @When("User logins to the application for RCMDB") +// public void login() throws Exception { +// if (loginStepsImpl.isLoginButtonDisplayed()) { +// loginStepsImpl.clckOnLoginButton(); +// } +// loginStepsImpl.enterUsername(""); +// String decyptedPass = EncryptionUtils.decrypt(""); +// loginStepsImpl.enterPassword(decyptedPass); +// CucumberLogUtils.logScreenshot(); +// loginStepsImpl.clickOnSignInButton(); +// } } \ No newline at end of file diff --git a/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/PortalViewSteps.java b/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/PortalViewSteps.java index b9ba8d553..88f8fe2f8 100644 --- a/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/PortalViewSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/PortalViewSteps.java @@ -11,7 +11,7 @@ import io.cucumber.java.en.When; public class PortalViewSteps { - + private PortalViewPage portalViewPage; private LoginStepsImpl loginStepsImpl; @@ -20,12 +20,12 @@ public void before() { this.portalViewPage = new PortalViewPage(); this.loginStepsImpl = new LoginStepsImpl(); } - + @Given("User opens IT Procurement Governance Application in browser") public void openATOApp() { portalViewPage.openApp(); } - + @When("User Logins to the application") public void login() throws Exception { if (loginStepsImpl.isLoginButtonDisplayed()) { @@ -40,27 +40,27 @@ public void login() throws Exception { loginStepsImpl.clickOnSignInButton(); } } - + @Then("Go to Native view") public void getNativeView() { portalViewPage.clickOnNativeView(); } - + @Then("Go to All Ideas") public void clickonAllIdeaCase() { portalViewPage.clickOnAllIdeas(); } - + @Then("Go to All Business Case") public void clickOnAllBusinessCase() { portalViewPage.clickOnAllBusiness(); } - + @Then("start a new idea case") public void startIdea() { portalViewPage.startANewIdea(); } - + @Then("Enter Idea case details") public void enterIdeaDetails() throws InterruptedException { portalViewPage.selectDocDirector("Justin Campany"); @@ -68,23 +68,23 @@ public void enterIdeaDetails() throws InterruptedException { portalViewPage.fillIDeaBox("Test IDea Form"); portalViewPage.programaticSUpportCheckBox(); } - + @Then("Click on Save and Continue") public void saveContinue() { portalViewPage.saveContinueButton(); } - + @Then("Open Latest Idea Case") public void openLatestIdeaCase() { portalViewPage.clickOnFirstIdeaCase(); } - + @Then("Click on approve request") public void approveRequest() throws InterruptedException { Thread.sleep(2000); portalViewPage.approveRequest(); } - + @Then("State is Updated to {string}") public void verifystate(String expectedState) throws Exception { Thread.sleep(2000); @@ -95,22 +95,22 @@ public void verifystate(String expectedState) throws Exception { Assert.assertEquals(expectedState, actualState); } } - + @Then("Open Latest Business Case") public void openLatestBusinessCase() { portalViewPage.clickOnFirstBusinessCase(); } - + @Then("Update details on Business form and submit") public void FillBusinessForm() throws InterruptedException { portalViewPage.enterTextInBusinessNeedBox("TestingAutomtaionTesting"); } - + @Then("Open Request Approval form and approve") public void approve() throws InterruptedException { portalViewPage.approveRequestForm(); } - + @Then("Click on Elevate Permision") public void elevatePermission() throws InterruptedException { portalViewPage.elevateButton(); diff --git a/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/BusinessCaseFormSteps.java b/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/BusinessCaseFormSteps.java index 2c36b060c..d91b4d16f 100644 --- a/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/BusinessCaseFormSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/BusinessCaseFormSteps.java @@ -117,7 +117,7 @@ public void openLatestIdeaCase() { businessCaseFormPage.sortCreatedDateForIdeaCasesInDecendingOrder(); businessCaseFormPage.clickOnFirstIdeaCase(); } - + @Then("Update details on business form and submit") public void FillBusinessForm() throws InterruptedException { businessCaseFormPage.enterTextInBusinessNeedBox("TestingAutomtaionTesting"); @@ -148,7 +148,7 @@ public void reject() { public void askForMoreInfo() { businessCaseFormPage.askForMoreInfoOnRequestForm(); } - + @Then("Verify Email notification with subject as {string}") public void verifyEmail(String subject) throws InterruptedException { boolean status = businessCaseFormPage.verifyEmail(subject); diff --git a/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java b/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java index aca6d4756..ef4523b18 100644 --- a/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java @@ -11,7 +11,7 @@ import io.cucumber.java.en.When; public class PortalViewSteps { - + private PortalViewPage portalViewPage; private LoginStepsImpl loginStepsImpl; @@ -20,12 +20,12 @@ public void before() { this.portalViewPage = new PortalViewPage(); this.loginStepsImpl = new LoginStepsImpl(); } - + @Given("User opens IT Procurement Governance Application in browser") public void openATOApp() { portalViewPage.openApp(); } - + @When("User Logins to the application") public void login() throws Exception { if (loginStepsImpl.isLoginButtonDisplayed()) { @@ -40,27 +40,27 @@ public void login() throws Exception { loginStepsImpl.clickOnSignInButton(); } } - + @Then("Go to Native view") public void getNativeView() { portalViewPage.clickOnNativeView(); } - + @Then("Go to All Ideas") public void clickonAllIdeaCase() { portalViewPage.clickOnAllIdeas(); } - + @Then("Go to All Business Case") public void clickOnAllBusinessCase() { portalViewPage.clickOnAllBusiness(); } - + @Then("start a new idea case") public void startIdea() { portalViewPage.startANewIdea(); } - + @Then("Enter Idea case details") public void enterIdeaDetails() throws InterruptedException { portalViewPage.selectDocDirector("Justin Campany"); @@ -68,23 +68,23 @@ public void enterIdeaDetails() throws InterruptedException { portalViewPage.fillIDeaBox("Test IDea Form"); portalViewPage.programaticSUpportCheckBox(); } - + @Then("Click on Save and Continue") public void saveContinue() { portalViewPage.saveContinueButton(); } - + @Then("Open Latest Idea Case") public void openLatestIdeaCase() { portalViewPage.clickOnFirstIdeaCase(); } - + @Then("Click on approve request") public void approveRequest() throws InterruptedException { Thread.sleep(2000); portalViewPage.approveRequest(); } - + @Then("State is Updated to {string}") public void verifystate(String expectedState) throws Exception { Thread.sleep(2000); @@ -95,22 +95,22 @@ public void verifystate(String expectedState) throws Exception { Assert.assertEquals(expectedState, actualState); } } - + @Then("Open Latest Business Case") public void openLatestBusinessCase() { portalViewPage.clickOnFirstBusinessCase(); } - + @Then("Update details on Business form and submit") public void FillBusinessForm() throws InterruptedException { portalViewPage.enterTextInBusinessNeedBox("TestingAutomtaionTesting"); } - + @Then("Open Request Approval form and approve") public void approve() throws InterruptedException { portalViewPage.approveRequestForm(); } - + @Then("Click on Elevate Permision") public void elevatePermission() throws InterruptedException { portalViewPage.elevateButton(); diff --git a/src/test/java/ServiceNow/AwardNomination/Attachments/AWARD_NOMINATION.docx b/src/test/java/ServiceNow/AwardNomination/Attachments/AWARD_NOMINATION.docx new file mode 100644 index 0000000000000000000000000000000000000000..8a332965ab178e907259fe3979a4edfea11b70e4 GIT binary patch literal 13195 zcmeHuWmFt%)^6kO1ef40!QCa$xVyVM1PMU{!QF!f4esvl?gV!T?s7Y4X1;SyX70M{ z{{E)ds<*0o*R!j-YFoYgX$2qzBqjhF01E&BNB}?brfjsp0D!kp000I67F=7@-p<9; z&P8A4gM+EFE~AI7&D$JEaOx}oIOzEQe*PEVftvVXyDnx_@!Nz4l$d%|qy3y>TJSJ| zL$)!{qIJ8=KiX&|PM87yaOHR7Q z`E3SY6I{xTc;+?XL5@#0Y%Q(0G8|ycWVPL~qss8|>AC3vZ#3=zk+ca>YUG{~tVDrN zSgh-}t!ofTYZMMN^0hGd$a-1m2ys>O>^^qyNpVaTou@U-6J!DnYA{0&y$@zGhc{rXA`lOF-r!Y979Oo&1gvyKPg-IEJ^BO_QYaX#FFk(aX)nvB=L zCty z-Q`EyI|u;a^%Vl3@HdwviovV@39>UekjEi_TvFf3)W(^K@z?lYSNvb>e}DPu-(x$i zx|tD$eg-@TOtva6b>ig8F&R%R<1E6!YD>vrEH7BizdZ9TEP(4C7)lOLO~*}mI;Tsx zuE*=1;U%gfeQAZ8yVvX1er)joBm}j5d*?Cdu!)$qdt>%IL?%Tu6cDEQ=F2!9bj)2y z@@NOf4z1YDP62`?Db4tdF?n_FS4Y+P+vJa|St;*k=d9jqd%+a*i?;<6HjUwagf|nc zOk!n-j_O*g((O?>jB8+tu%fx9$FpH(qDYT1`VNnG)-rkMncH5_8yZ9pmkk%n^yqD- zgRb?m_hlDXkmDzbW{v)aJ$|~b@FgfQ{kwmdkK7KPf_x(r0RTV)-4u6wCle+Udt+By zP~Q5Lu<{ZI?UtEQg?>Ukpah@7)q2DPEeLCo2_r-K=bvO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fF{`5ROI>kh?os{K;AmGsF_BrLEo`fJ+m z-<#>4+EI(aAQQm_84wzXf&t=PC^*?WI5QdBJN;oHAQs<$c^9BtmmaGK1o1BVe?Ya1 z4#xTGF3ANa)`?Pe`{Dazh@X>C)-#mJipG{M*K^v=k8Kc%?RV>*-oEa6CKa}WiZCSU zOP!v9pB@8X!p?oYd=lf+*r)d6rDRK*EK6EL3DR^B z67TY&{h09{35kDdLeNf2LaFY+q&QY5IAGd-VQ8IffeOpn$6ST4eSW-ieL7QlE*=)= zrh}&r#X&;iq#;LJ`^+&_GR~BhFJOm(uME|*O`Fo8gx30ry&w!>j}l5ay?St;NFF-Z zdC%uekp{nMr5n9YyezryD@;l+jzw_;n_KgB1Pn}~TquWe^C>QjTl4eqPP_QGsH)ft zB#PB97Sk5>(M^U1k%T51QLRNSE->!XB+}qa4KB|eAC=p&q35&rS`+w*_iuw2%lv$K zIiRl>kcpiykp7eLw!ED8*@29=3q-I({j2dBIyn4_ZvVAikm3HaU8P|;knOgRoueq8 z&d?}ji)fS0z&oxh7G?8m-%wUM*bKXs-27Z*L-lXim>&D?&c@5JLaZG}$SihpOqwb8 zg-?_&W2#PX`{&NqEZ?{hx*FUTJ>vyN-_uupy$&9(C=$zXT&abIfwcH1LSsdag)dy$ zb>HN6MCi~v6;WeOnzd>4<1k@vfXI@VE$83(QD@zDZhFbOj!w_&>iZY6** z)XFb8rVf*;G+w;;qfL$mTXaIZoYc3%15*lwv1tFDS&UNqXOY({_F59q~jd$$RQz#i94Uin*E4p4X})SVP6c*MS-J zOpFOlhDyG=PU6~U&pvn9e%V(_pfv^4Wz5gVx#s3f{f-KBr~eUP!N3_n_0NC)*TNqU z Date: Thu, 12 Dec 2024 12:07:41 -0500 Subject: [PATCH 03/11] upd --- src/main/java/com/nci/automation/web/TestProperties.java | 2 +- .../RCMDB/stepsImplementation/PortalViewSteps.java | 3 ++- .../AwardNomination/Features/VIBEAppreciationRequest.feature | 5 ----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/nci/automation/web/TestProperties.java b/src/main/java/com/nci/automation/web/TestProperties.java index 0838be035..e142fa91b 100644 --- a/src/main/java/com/nci/automation/web/TestProperties.java +++ b/src/main/java/com/nci/automation/web/TestProperties.java @@ -4,7 +4,7 @@ public class TestProperties { public static String ENV = "test"; public static String BROWSER = "chrome"; - public static boolean HEADLESS = false; + public static boolean HEADLESS = true; public static int SET_SLOW_MO_TIME = 1000; /** diff --git a/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java b/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java index ef4523b18..3dda397c9 100644 --- a/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java @@ -1,3 +1,4 @@ + package PLATFORM_BUSINESS.RCMDB.stepsImplementation; import org.junit.Assert; @@ -115,4 +116,4 @@ public void approve() throws InterruptedException { public void elevatePermission() throws InterruptedException { portalViewPage.elevateButton(); } -} \ No newline at end of file +} diff --git a/src/test/java/ServiceNow/AwardNomination/Features/VIBEAppreciationRequest.feature b/src/test/java/ServiceNow/AwardNomination/Features/VIBEAppreciationRequest.feature index 0c4d9af18..9131634f4 100644 --- a/src/test/java/ServiceNow/AwardNomination/Features/VIBEAppreciationRequest.feature +++ b/src/test/java/ServiceNow/AwardNomination/Features/VIBEAppreciationRequest.feature @@ -36,8 +36,3 @@ Then User can verify that attachment is added - - - - - From 3e8a0943a041f07af86ffc134e03ab6d09a6ae8b Mon Sep 17 00:00:00 2001 From: nekrashevicha2 Date: Thu, 12 Dec 2024 12:08:57 -0500 Subject: [PATCH 04/11] upd --- .../RCMDB/stepsImplementation/PortalViewSteps.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java b/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java index 3dda397c9..a5992a1e7 100644 --- a/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java @@ -1,4 +1,3 @@ - package PLATFORM_BUSINESS.RCMDB.stepsImplementation; import org.junit.Assert; From 027bb4174396043b7d4e2339f5f5355d1245516b Mon Sep 17 00:00:00 2001 From: nekrashevicha2 Date: Thu, 12 Dec 2024 12:13:44 -0500 Subject: [PATCH 05/11] upd --- .../ServiceNow/AwardNomination/Steps/AwardNominationSteps.java | 3 --- .../AwardNominationStepsImplementation.java | 1 - 2 files changed, 4 deletions(-) diff --git a/src/test/java/ServiceNow/AwardNomination/Steps/AwardNominationSteps.java b/src/test/java/ServiceNow/AwardNomination/Steps/AwardNominationSteps.java index bdea3bc93..90d91f7fc 100644 --- a/src/test/java/ServiceNow/AwardNomination/Steps/AwardNominationSteps.java +++ b/src/test/java/ServiceNow/AwardNomination/Steps/AwardNominationSteps.java @@ -157,6 +157,3 @@ public void user_can_verify_that_attachment_is_added() { softAssert.assertTrue(awardNominationPage.attachmentAdded.isDisplayed()); } } - - - diff --git a/src/test/java/ServiceNow/AwardNomination/StepsImplementation/AwardNominationStepsImplementation.java b/src/test/java/ServiceNow/AwardNomination/StepsImplementation/AwardNominationStepsImplementation.java index a2f1c17d7..3f7650c60 100644 --- a/src/test/java/ServiceNow/AwardNomination/StepsImplementation/AwardNominationStepsImplementation.java +++ b/src/test/java/ServiceNow/AwardNomination/StepsImplementation/AwardNominationStepsImplementation.java @@ -182,4 +182,3 @@ public void uploadFile(){ CommonUtils.sleep(3000); } } - From 3c9dbf2acb30943952f64d44bf32faccbf02c7b8 Mon Sep 17 00:00:00 2001 From: nekrashevicha2 Date: Mon, 16 Dec 2024 15:41:09 -0500 Subject: [PATCH 06/11] upd per comments --- .../CADSR/steps/NativeViewSteps.java | 22 +------- .../CADSR/steps/ServicePortalSteps.java | 55 ++----------------- .../NCCR/features/NCCRFlow.feature | 2 + .../RCMDB/steps/BusinessCaseFormSteps.java | 38 ++----------- .../RCMDB/steps/PortalViewSteps.java | 5 -- .../BusinessCaseFormSteps.java | 6 -- .../stepsImplementation/PortalViewSteps.java | 4 -- .../AwardNominationStepsImplementation.java | 6 +- 8 files changed, 16 insertions(+), 122 deletions(-) diff --git a/src/test/java/PLATFORM_BUSINESS/CADSR/steps/NativeViewSteps.java b/src/test/java/PLATFORM_BUSINESS/CADSR/steps/NativeViewSteps.java index 53a5ec63d..502ab7deb 100644 --- a/src/test/java/PLATFORM_BUSINESS/CADSR/steps/NativeViewSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/CADSR/steps/NativeViewSteps.java @@ -27,20 +27,14 @@ public void openATOApp() { @When("User Logins to the CADSR application") public void login() throws Exception { - //loginStepsImpl.enterUsername(ConfUtils.getProperty("sgugulothuUsername")); - //String decyptedPass = EncryptionUtils.decrypt(ConfUtils.getProperty("sgugulothuPassword")); - //loginStepsImpl.enterPassword(decyptedPass); loginStepsImpl.clickOnSignInButton(); } - @Then("Go to Native viewkkkk of the application") + @Then("Go to Native view of the application") public void getNativeView() { nativeViewPage.clickOnNativeView(); } - - - @Then("Go to CADSR Requests") public void clickonCADSRRequest() throws InterruptedException { nativeViewPage.clickOnCADSRRequest(); @@ -49,7 +43,6 @@ public void clickonCADSRRequest() throws InterruptedException { @Then("User should see default columns for incident grid") public void viewDefaultColumns() throws InterruptedException { nativeViewPage.viewDefaultColumns(); - } @Then("Go to All Business Case") @@ -118,15 +111,12 @@ public void elevatePermission() throws InterruptedException { @Then("User should see Save, Add Attachments and Submit button") public void user_should_see_Save_Add_Attachments_and_Submit_button() { nativeViewPage.switchToFrame(); - Assert.assertTrue("Save button is not present on the screen", nativeViewPage.isElementPresent(nativeViewPage.saveButton)); Assert.assertTrue("Add Attachement button is not present on the screen", nativeViewPage.isElementPresent(nativeViewPage.addAttachemdnBottom)); Assert.assertTrue("Submit button is not present on the screen", nativeViewPage.isElementPresent(nativeViewPage.submitButtonOnNewRequestForm)); - - } @Then("Start a new request on nativ view") @@ -134,28 +124,23 @@ public void start_new_Requst() { nativeViewPage.startANewRequest(); } - @Then("User should see available different choices of status") public void validateStatusCHoices() throws Exception { nativeViewPage.allSelectOptions(); - } @Then("take the final page screenshot and add it to the report") public void logScreenshot() { - } @Then("Set Assigned to and save") public void set_assigned_to() { nativeViewPage.selectAssignedTo("Janice Knable"); nativeViewPage.justSaveTicket(); - } @Then("Validate assigned to value in child ticket") public void validate_assigned_to() throws InterruptedException { - String value = nativeViewPage.getAssignedToValue(); Assert.assertTrue("Assigned to value in child ticket is not correct", "Janice Knable".equalsIgnoreCase(value)); } @@ -163,12 +148,10 @@ public void validate_assigned_to() throws InterruptedException { @Then("User should see Status field") public void user_should_see_Status_field() { nativeViewPage.validateTheLabelAsStatus(); - } @Then("Validate parent ticket reference") public void validatePerenetTicketReference() { - nativeViewPage.validateParentTicketReference(); } @@ -179,7 +162,6 @@ public void validateTextOnLandingPage() { @Then("validate text on request form page") public void validateTextonRequestFormPage() { - nativeViewPage.validateTextOnRequestFormPage(); } @@ -191,12 +173,10 @@ public void enterOneMoreEmailId() { @Then("validate page footer") public void validatePageFooter() { nativeViewPage.checkIfPageFooterISasExpected(); - } @Then("validate that the list of organiation is as expected") public void validateTheListOfOrganization() throws Exception { nativeViewPage.validateTheListOfOrganization(); - } } diff --git a/src/test/java/PLATFORM_BUSINESS/CADSR/steps/ServicePortalSteps.java b/src/test/java/PLATFORM_BUSINESS/CADSR/steps/ServicePortalSteps.java index 69738f125..57272a436 100644 --- a/src/test/java/PLATFORM_BUSINESS/CADSR/steps/ServicePortalSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/CADSR/steps/ServicePortalSteps.java @@ -55,7 +55,6 @@ public void user_should_See_requested_by_field() { @Then("User should see request form") public void seeUserRequestFor() throws InterruptedException { - // This will fail if the form is not there servicePortalPage.submitandContinue(); } @@ -63,7 +62,6 @@ public void seeUserRequestFor() throws InterruptedException { public void selectCuration() throws InterruptedException { servicePortalPage.selectRandomTask("Curation"); servicePortalPage.verifyCurationHelpText(); - } @Then("User should see multiple widget") @@ -152,13 +150,11 @@ public void selectMultipleCurations() throws InterruptedException { @Then("Clear default phone number") public void clearPhoneNumber() throws InterruptedException { servicePortalPage.clearPhoneNumber(); - } @Then("Select multiple curation operations") public void selectMultipleCuration() throws InterruptedException { servicePortalPage.selectCuration("Curation"); - } @Then("Close latest child ticket") @@ -179,7 +175,6 @@ public void user_should_be_able_to_reopen_child_ticket() { @Then("Update Requested For and validated updated Phone , email and organisation based on selection") public void updateRequestedFor() throws InterruptedException { servicePortalPage.updateRequestedFor(); - } @Then("Click on Save button") @@ -196,7 +191,7 @@ public void select_the_organization_name_as(String string) { public void user_should_see_assignment_group_as(String string) { String actual = servicePortalPage.getTheAssignmentGroup(); Assert.assertTrue(string.equalsIgnoreCase(actual), - "Excpeted assignment group was " + string + " but found" + actual); + "Expected assignment group was " + string + " but found" + actual); } @Then("User should have option to upload attachment") @@ -227,55 +222,46 @@ public void clickOnViewMyTicket() throws InterruptedException { @Then("Go to View My Tickets") public void clickOnViewMyTicketButton() throws InterruptedException { servicePortalPage.viewMyTicket(); - } @Then("Go to View My Historical Ticket") public void clickOnViewMyHistoricalTicketButton() throws InterruptedException { servicePortalPage.clickOnViewMyHistoricalTicketButton(); - } @Then("Validate close incomplete and resolved tickets") public void validateCloseAndResolvedTicket() throws InterruptedException { servicePortalPage.validateCloseAndResolvedTicket(); - } @Then("Validate resolved and close incomplete tickets") public void validateResolvedAndClosedTicket() throws InterruptedException { servicePortalPage.validateResolvedAndClosedTicket(); - } @Then("Validate resolved confirmed status") public void validateResolvedTicket() throws InterruptedException { servicePortalPage.validateResolvedTicket(); - } @Then("User should see new request button") - public void viewNewRequestButton() throws InterruptedException { + public void viewNewRequestButton(){ servicePortalPage.viewNewRequestButton(); - } @Then("Validate ticket ID in native view") public void validateTicketInNativeView() throws InterruptedException { servicePortalPage.validateTicketInNativeView(); - } @Then("Sort the tickets by requested date") public void sortTickets() { servicePortalPage.sortTicketsByRequestedDate(); - } @Then("Open latest caDSR ticket") public void openLatestTicket() throws InterruptedException { servicePortalPage.openLatestTicket(); - } @Then("Click on Resolve") @@ -295,7 +281,6 @@ public void reference_it_to_previous_ticket() throws Exception { @Then("Update request due date") public void update_request_due_date() { - // Write code here that turns the phrase above into concrete actions servicePortalPage.updateRequestedDateTextBox(); } @@ -307,49 +292,41 @@ public void openCurationTask() { @Then("Validate update of caDSR to caDSR II") public void validatecaDSRFilteredMenuName() throws InterruptedException { servicePortalPage.validatecaDSRFilteredMenuName(); - } @Then("Open Latest Ticket") - public void openMyLatestTicket() throws InterruptedException { + public void openMyLatestTicket() { servicePortalPage.openMyLatestTicket(); - } @Then("User shouldnt have Add watcher and Add Attachments button") public void validateAddWatcherButton() throws InterruptedException { servicePortalPage.validateAddWatcherButton(); - } @Then("User should see read only view of the ticket") - public void validateReadOnlyAccess() throws InterruptedException { + public void validateReadOnlyAccess(){ servicePortalPage.validateReadOnlyAccess(); - } @Then("User should see default SOW number selected") public void validateSOWNumber() throws InterruptedException { servicePortalPage.validateSOWNumber(); - } @Then("Close ticket without filling resolution info") public void closeTicket() throws InterruptedException { servicePortalPage.closeTicket(); - } @Then("Complete child ticket and update") public void completeChildTicket() throws InterruptedException { servicePortalPage.completeChildTicket(); - } @Then("Close parent ticket without curation count and update") public void completeParentTicket() throws InterruptedException { servicePortalPage.completeTicket(); - } @Then("verify that the fields are disabled") @@ -360,52 +337,44 @@ public void verifyDisabledFields() throws Exception { @Then("Resolve parent ticket without curation count and update") public void resolveParentTicket() throws InterruptedException { servicePortalPage.resolveTicket(); - } @Then("Validate autofill of user record information") public void validateAutoFillOfUserInformation() throws InterruptedException { servicePortalPage.validateAutoFillOfUserInformation(); - } @Then("User should see new format of add attachment page with matching current caDSR format") public void validateAddAttachmentPage() throws InterruptedException { servicePortalPage.validateAddAttachmentPage(); - } @Then("User shouldnt see hyperlink on the Request Form") public void validateRequestFormHyperlink() throws InterruptedException { servicePortalPage.validateRequestFormHyperlink(); - } @Then("User shouldnt see Get Help Footer") public void validateGetHelpFooter() throws InterruptedException { servicePortalPage.validateGetHelpFooter(); - } @Then("User should be able to enter additional contact email addresses") public void validateAdditionalEmail() throws InterruptedException { servicePortalPage.validateAdditionalEmail(); - } @Then("User should see error message when he enter invalid additional contact email addresses") public void enterAdditionalEmail() throws InterruptedException { servicePortalPage.enterAdditionalEmail(); - } @Then("User should see default priority as Moderate") public void validatePriority() throws InterruptedException { servicePortalPage.validatePriority(); - } - @Then("Go to native viewmm") + @Then("Go to native view") public void getNativeViewm() { servicePortalPage.clickOnNativeView(); } @@ -446,15 +415,12 @@ public void updateCurationCOunt() { @Then("User should see updated curation count for parent ticket") public void assertCurationCountAs10() { servicePortalPage.verifyCurationCOunt(); - } @Then("Verify Email notificationkkk with subject as {string}") public void verifyEmailkkk(String subject) throws InterruptedException { boolean status = servicePortalPage.verifyEmail(subject); - Assert.assertEquals(true, status); - } @Then("Go to view my tickets") @@ -487,16 +453,5 @@ public void check_if_breadcrumb_is_present_as(String string) { @Then("User shouldnt see Ticket detail link") public void ticketDetailsLinkMissing() { Assert.assertTrue(servicePortalPage.isBreadCrumTrailAvailable(), "Ticket details link might be present"); - } - -// @After -// public void genericTearDown(Scenario s) { -// CucumberLogUtils.logScreenshot(); -// if (WebDriverUtils.webDriver != null) { -// WebDriverUtils.closeWebDriver(); -// PageCache.getInstance().destroyInstances(); -// } -// } - } diff --git a/src/test/java/PLATFORM_BUSINESS/NCCR/features/NCCRFlow.feature b/src/test/java/PLATFORM_BUSINESS/NCCR/features/NCCRFlow.feature index ce62edffb..25b5de3a7 100644 --- a/src/test/java/PLATFORM_BUSINESS/NCCR/features/NCCRFlow.feature +++ b/src/test/java/PLATFORM_BUSINESS/NCCR/features/NCCRFlow.feature @@ -21,3 +21,5 @@ Feature: NCCR flow Then User can see Load Filter, Save Filter, Add Sort, and New Criteria buttons And User can close filter And User can see pagination for All Data Requests tab + + diff --git a/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/BusinessCaseFormSteps.java b/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/BusinessCaseFormSteps.java index 6889dd2a3..b19f80e73 100644 --- a/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/BusinessCaseFormSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/BusinessCaseFormSteps.java @@ -113,7 +113,7 @@ public void FillBusinessForm() throws InterruptedException { businessCaseFormPage.enterTextInBusinessNeedBox("TestingAutomtaionTesting"); } - @Then("Go to Native viewkkkk of application") + @Then("Go to Native view of application") public void getNativeView() { businessCaseFormPage.clickOnNativeView(); } @@ -141,9 +141,7 @@ public void askForMoreInfo() { @Then("Verify Email notification withkk subject as {string}") public void verifyEmailmm(String subject) throws InterruptedException { boolean status = businessCaseFormPage.verifyEmail(subject); - Assert.assertEquals(true, status); - } @Given("user navigates to the Record management home page") @@ -154,46 +152,39 @@ public void user_navigates_to_the_Record_management_home_page() { @Then("verify that the page has all the exsisting labels") public void verify_that_the_page_has_all_the_exsisting_labels() { businessCaseFormPage.validateLabels(); - } @Then("Validate tracking log") public void Validate_tracking_log() { businessCaseFormPage.validateTrackingLog(); CucumberLogUtils.logScreenshot(); - } @Then("User clicks on Quaterly Costs") public void User_clicks_on_Quaterly_Costs() { businessCaseFormPage.clickOnQuaterlyCosts(); - } @Then("User clicks on RM Tracking Record Import") public void User_clicks_on_RM_Tracking_Record_Import() { businessCaseFormPage.clickOnCreateNewRMTrackingRecord(); CucumberLogUtils.logScreenshot(); - } @Then("Click on new Quaterly Cost") public void Click_on_new_Quaterly_Cost() { businessCaseFormPage.clickOnNewQuaterlyCost(); - } @Then("Click on new RM Tracking record") public void Click_on_new_RM_Tracking_record() { businessCaseFormPage.clickOnNewRMTrackingRecordButton(); CucumberLogUtils.logScreenshot(); - } @Then("Fill all the record details") public void Fill_all_the_record_details() { businessCaseFormPage.fillRMTrackingForm(); - } @Then("Fill all the Quaterly Cost details") @@ -205,33 +196,28 @@ public void Fill_all_the_Quaterly_Cost_details() throws InterruptedException { @Then("Validate added recorded") public void Validate_added_recorded() throws InterruptedException { businessCaseFormPage.validateAddedRecorded(); - } @Then("Validate added new record") public void Validate_added_new_recorded() throws InterruptedException { businessCaseFormPage.validateAddedNewRecord(); - } @Then("User clicks on create new record button") public void User_clicks_on_create_new_record_button() { businessCaseFormPage.clickOnCreateNewRecord(); - } @Then("User clicks on all tracking records") public void User_clicks_on_all_tracking_record_button() { businessCaseFormPage.clickOnAllTrackingRecord(); CucumberLogUtils.logScreenshot(); - } @Then("Click on submit") public void ClickOnSubmit() { businessCaseFormPage.ClickOnSubmit(); CucumberLogUtils.logScreenshot(); - } @Then("Click on submit record") @@ -244,24 +230,21 @@ public void Click_on_submit_record() { public void Click_on_submit_button() { businessCaseFormPage.ClickOnSubmitButton(); CucumberLogUtils.logScreenshot(); - } @Then("Enter Disposition Authority more than accepted limit") - public void Enter_Disposition_Authority_more_than_accepted_limit() throws InterruptedException { + public void Enter_Disposition_Authority_more_than_accepted_limit(){ businessCaseFormPage.enterInvalidDispositionAuthority(); - } @Then("Enter customer name manually") - public void Enter_customer_name_manually() throws InterruptedException { + public void Enter_customer_name_manually(){ businessCaseFormPage.enterCustomerNameManually(); CucumberLogUtils.logScreenshot(); - } @Then("User should see error message") - public void User_should_see_error_message() throws InterruptedException { + public void User_should_see_error_message(){ businessCaseFormPage.validateErrorMessage(); CucumberLogUtils.logScreenshot(); } @@ -269,18 +252,5 @@ public void User_should_see_error_message() throws InterruptedException { @Then("Fill all the details") public void Fill_all_the_details() throws InterruptedException { businessCaseFormPage.fillTrackingRecordForm(); - } - -// @When("User logins to the application for RCMDB") -// public void login() throws Exception { -// if (loginStepsImpl.isLoginButtonDisplayed()) { -// loginStepsImpl.clckOnLoginButton(); -// } -// loginStepsImpl.enterUsername(""); -// String decyptedPass = EncryptionUtils.decrypt(""); -// loginStepsImpl.enterPassword(decyptedPass); -// CucumberLogUtils.logScreenshot(); -// loginStepsImpl.clickOnSignInButton(); -// } } \ No newline at end of file diff --git a/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/PortalViewSteps.java b/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/PortalViewSteps.java index 88f8fe2f8..d284ace7b 100644 --- a/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/PortalViewSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/PortalViewSteps.java @@ -32,11 +32,7 @@ public void login() throws Exception { loginStepsImpl.clckOnLoginButton(); loginStepsImpl.enterUsername(""); String decyptedPass = EncryptionUtils.decrypt(""); - // loginStepsImpl.enterUsername(ConfUtils.getProperty("Username")); - // decyptedPass=EncryptionUtils.decrypt(ConfUtils.getProperty("Password")); loginStepsImpl.enterPassword(decyptedPass); - // loginPage.enterUsername(ConfigFileReader.getConfigFileReader().getUserName()); - // loginPage.enterPassword(ConfigFileReader.getConfigFileReader().getPassword()); loginStepsImpl.clickOnSignInButton(); } } @@ -115,5 +111,4 @@ public void approve() throws InterruptedException { public void elevatePermission() throws InterruptedException { portalViewPage.elevateButton(); } - } diff --git a/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/BusinessCaseFormSteps.java b/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/BusinessCaseFormSteps.java index d91b4d16f..ab2388c55 100644 --- a/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/BusinessCaseFormSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/BusinessCaseFormSteps.java @@ -20,7 +20,6 @@ public void before() { this.loginStepsImpl = new LoginStepsImpl(); } - @When("Click on {string}") public void navigateToQUickLin(String quickLinkOption) { try { @@ -47,11 +46,7 @@ public void login() throws Exception { loginStepsImpl.clckOnLoginButton(); loginStepsImpl.enterUsername(""); String decyptedPass = EncryptionUtils.decrypt(""); - // loginStepsImpl.enterUsername(ConfUtils.getProperty("Username")); - // decyptedPass=EncryptionUtils.decrypt(ConfUtils.getProperty("Password")); loginStepsImpl.enterPassword(decyptedPass); - // loginPage.enterUsername(ConfigFileReader.getConfigFileReader().getUserName()); - // loginPage.enterPassword(ConfigFileReader.getConfigFileReader().getPassword()); loginStepsImpl.clickOnSignInButton(); } } @@ -138,7 +133,6 @@ public void approve() { businessCaseFormPage.approveRequestForm(); } - @Then("Open Request approval form and reject") public void reject() { businessCaseFormPage.rejectRequestForm(); diff --git a/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java b/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java index a5992a1e7..33c062a13 100644 --- a/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java @@ -32,11 +32,7 @@ public void login() throws Exception { loginStepsImpl.clckOnLoginButton(); loginStepsImpl.enterUsername(""); String decyptedPass = EncryptionUtils.decrypt(""); - // loginStepsImpl.enterUsername(ConfUtils.getProperty("Username")); - // decyptedPass=EncryptionUtils.decrypt(ConfUtils.getProperty("Password")); loginStepsImpl.enterPassword(decyptedPass); - // loginPage.enterUsername(ConfigFileReader.getConfigFileReader().getUserName()); - // loginPage.enterPassword(ConfigFileReader.getConfigFileReader().getPassword()); loginStepsImpl.clickOnSignInButton(); } } diff --git a/src/test/java/ServiceNow/AwardNomination/StepsImplementation/AwardNominationStepsImplementation.java b/src/test/java/ServiceNow/AwardNomination/StepsImplementation/AwardNominationStepsImplementation.java index 3f7650c60..5c125a0ae 100644 --- a/src/test/java/ServiceNow/AwardNomination/StepsImplementation/AwardNominationStepsImplementation.java +++ b/src/test/java/ServiceNow/AwardNomination/StepsImplementation/AwardNominationStepsImplementation.java @@ -12,8 +12,7 @@ import static com.nci.automation.web.TestProperties.getAwardNominationUrl; public class AwardNominationStepsImplementation extends PageInitializer{ - - /** + /** * Logs in as a Submitter User to NCCR Portal. */ public void awardNominationSubmitterUserLogin() { @@ -176,6 +175,9 @@ public void verifyWatcherAdded(String watcher) { softAssert.assertTrue(awardNominationPage.watchListField.getText().equals(watcher)); } + /** + * upload a file + */ public void uploadFile(){ awardNominationPage.addAttachmentButton.sendKeys("C:\\Users\\nekrashevicha2\\Desktop\\projectIDEA\\src\\test\\java\\ServiceNow\\AwardNomination\\Attachments\\AWARD_NOMINATION.docx"); CucumberLogUtils.logScreenshot(); From 8c3c981eafc961fbb36726ddb688b95812309def Mon Sep 17 00:00:00 2001 From: nekrashevicha2 Date: Mon, 16 Dec 2024 20:54:34 -0500 Subject: [PATCH 07/11] upd --- .../AwardNomination/Features/VIBEAppreciationRequest.feature | 1 - 1 file changed, 1 deletion(-) diff --git a/src/test/java/ServiceNow/AwardNomination/Features/VIBEAppreciationRequest.feature b/src/test/java/ServiceNow/AwardNomination/Features/VIBEAppreciationRequest.feature index 9131634f4..01d0a3a85 100644 --- a/src/test/java/ServiceNow/AwardNomination/Features/VIBEAppreciationRequest.feature +++ b/src/test/java/ServiceNow/AwardNomination/Features/VIBEAppreciationRequest.feature @@ -35,4 +35,3 @@ When User adds attachment Then User can verify that attachment is added - From aa595a530c450902fb0fdfb7bfff386d708039f6 Mon Sep 17 00:00:00 2001 From: nekrashevicha2 Date: Mon, 16 Dec 2024 21:04:06 -0500 Subject: [PATCH 08/11] upd --- .../RCMDB/features/NativeView.feature | 6 ++--- .../RCMDB/pages/BusinessCaseFormPage.java | 12 ++++----- .../RCMDB/steps/BusinessCaseFormSteps.java | 26 ++++++++++++++----- 3 files changed, 28 insertions(+), 16 deletions(-) diff --git a/src/test/java/PLATFORM_BUSINESS/RCMDB/features/NativeView.feature b/src/test/java/PLATFORM_BUSINESS/RCMDB/features/NativeView.feature index d489f0304..b9402cd94 100644 --- a/src/test/java/PLATFORM_BUSINESS/RCMDB/features/NativeView.feature +++ b/src/test/java/PLATFORM_BUSINESS/RCMDB/features/NativeView.feature @@ -6,7 +6,7 @@ Feature: Recordmanagement feature files Given user navigates to the Record management home page Then User logins to the application for RCMDB Then Go to Native view of application - Then verify that the page has all the exsisting labels + Then verify that the page has all the existing labels @SNOWRMDB-10 Scenario: Naviate to the create new record form and create new tracking record @@ -40,7 +40,7 @@ Feature: Recordmanagement feature files Then Enter Disposition Authority more than accepted limit @RCMDB - Scenario: Naviate to the RM Teacking record Import and create new tracking record + Scenario: Naviate to the RM Tracking record Import and create new tracking record Given user navigates to the Record management home page Then User logins to the application for RCMDB Then User clicks on RM Tracking Record Import @@ -52,7 +52,7 @@ Feature: Recordmanagement feature files Scenario: Naviate to the Quaterly Costs and create new Quaterly Cost Given user navigates to the Record management home page Then User logins to the application for RCMDB - Then User clicks on Quaterly Costs + Then User clicks on Quarterly Costs Then Click on new Quaterly Cost Then Fill all the Quaterly Cost details Then Click on submit button diff --git a/src/test/java/PLATFORM_BUSINESS/RCMDB/pages/BusinessCaseFormPage.java b/src/test/java/PLATFORM_BUSINESS/RCMDB/pages/BusinessCaseFormPage.java index 4c91dea19..9d6a2e5ee 100644 --- a/src/test/java/PLATFORM_BUSINESS/RCMDB/pages/BusinessCaseFormPage.java +++ b/src/test/java/PLATFORM_BUSINESS/RCMDB/pages/BusinessCaseFormPage.java @@ -257,7 +257,7 @@ public BusinessCaseFormPage() { @FindBy(id = "x_g_nci_record_mgt_quarterly_cost.quarterly_cost.display") - private WebElement quaterlyCost; + private WebElement quarterlyCost; @FindBy(id = "x_g_nci_record_mgt_quarterly_cost.total_records") private WebElement totalRecords; @@ -837,7 +837,7 @@ public void clickOnNewRMTrackingRecordButton() { switchToDefaultFrame(); } - public void clickOnNewQuaterlyCost() { + public void clickOnNewQuarterlyCost() { // TODO Auto-generated method stub switchToFrame(); clickOnElement(newQuaterlyCost); @@ -879,12 +879,12 @@ public void fillRMTrackingForm() { } - public void fillQuaterlyCostForm() throws InterruptedException { + public void fillQuarterlyCostForm() throws InterruptedException { // TODO Auto-generated method stub switchToFrame(); setText(endDate,"11/11/2022"); - quaterlyCost.clear(); - setText(quaterlyCost,"0.00"); + quarterlyCost.clear(); + setText(quarterlyCost,"0.00"); setText(totalRecords,"10"); setText(totalBoxes,"110"); switchToDefaultFrame(); @@ -903,7 +903,7 @@ public void validateAddedRecorded() throws InterruptedException { Thread.sleep(2000); switchToFrame(); Assert.assertEquals(endDate.getAttribute("value"), "11/11/2022"); - Assert.assertEquals(quaterlyCost.getAttribute("value"), "0.00"); + Assert.assertEquals(quarterlyCost.getAttribute("value"), "0.00"); Assert.assertEquals(totalRecords.getAttribute("value"), "10"); Assert.assertEquals(totalBoxes.getAttribute("value"), "110"); CucumberLogUtils.logScreenshot(); diff --git a/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/BusinessCaseFormSteps.java b/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/BusinessCaseFormSteps.java index b19f80e73..3c030107e 100644 --- a/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/BusinessCaseFormSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/BusinessCaseFormSteps.java @@ -149,8 +149,8 @@ public void user_navigates_to_the_Record_management_home_page() { businessCaseFormPage.openApp(); } - @Then("verify that the page has all the exsisting labels") - public void verify_that_the_page_has_all_the_exsisting_labels() { + @Then("verify that the page has all the existing labels") + public void verify_that_the_page_has_all_the_existing_labels() { businessCaseFormPage.validateLabels(); } @@ -172,8 +172,8 @@ public void User_clicks_on_RM_Tracking_Record_Import() { } @Then("Click on new Quaterly Cost") - public void Click_on_new_Quaterly_Cost() { - businessCaseFormPage.clickOnNewQuaterlyCost(); + public void Click_on_new_Quarterly_Cost() { + businessCaseFormPage.clickOnNewQuarterlyCost(); } @Then("Click on new RM Tracking record") @@ -187,9 +187,9 @@ public void Fill_all_the_record_details() { businessCaseFormPage.fillRMTrackingForm(); } - @Then("Fill all the Quaterly Cost details") - public void Fill_all_the_Quaterly_Cost_details() throws InterruptedException { - businessCaseFormPage.fillQuaterlyCostForm(); + @Then("Fill all the Quarterly Cost details") + public void Fill_all_the_Quarterly_Cost_details() throws InterruptedException { + businessCaseFormPage.fillQuarterlyCostForm(); CucumberLogUtils.logScreenshot(); } @@ -253,4 +253,16 @@ public void User_should_see_error_message(){ public void Fill_all_the_details() throws InterruptedException { businessCaseFormPage.fillTrackingRecordForm(); } + + @When("User logins to the application for RCMDB") + public void login() throws Exception { + if (loginStepsImpl.isLoginButtonDisplayed()) { + loginStepsImpl.clckOnLoginButton(); + } + loginStepsImpl.enterUsername(""); + String decyptedPass = EncryptionUtils.decrypt(""); + loginStepsImpl.enterPassword(decyptedPass); + CucumberLogUtils.logScreenshot(); + loginStepsImpl.clickOnSignInButton(); + } } \ No newline at end of file From bd65512fe372633103e89a497caa4f33b776061f Mon Sep 17 00:00:00 2001 From: nekrashevicha2 Date: Mon, 16 Dec 2024 21:13:18 -0500 Subject: [PATCH 09/11] updates --- .../CADSR/features/Nativeview.feature | 4 ++-- .../CADSR/steps/NativeViewSteps.java | 22 +++++++++---------- .../CADSR/steps/ServicePortalSteps.java | 4 ++-- .../RCMDB/features/NativeView.feature | 9 ++++---- .../RCMDB/steps/BusinessCaseFormSteps.java | 18 +++++++-------- .../RCMDB/steps/PortalViewSteps.java | 10 ++++----- .../BusinessCaseFormSteps.java | 14 ++++++------ .../stepsImplementation/PortalViewSteps.java | 12 +++++----- 8 files changed, 46 insertions(+), 47 deletions(-) diff --git a/src/test/java/PLATFORM_BUSINESS/CADSR/features/Nativeview.feature b/src/test/java/PLATFORM_BUSINESS/CADSR/features/Nativeview.feature index 4651c05e1..f29d261ab 100644 --- a/src/test/java/PLATFORM_BUSINESS/CADSR/features/Nativeview.feature +++ b/src/test/java/PLATFORM_BUSINESS/CADSR/features/Nativeview.feature @@ -7,7 +7,7 @@ Feature: CADSR feature files When User Logins to the caDSR application Then Go to Native view of the application Then Go to CADSR Requests - Then Start a new request on nativ view + Then Start a new request on native view Then User should see Save, Add Attachments and Submit button @@ -25,7 +25,7 @@ Feature: CADSR feature files When User Logins to the caDSR application Then Go to Native view of the application Then Go to CADSR Requests - Then Start a new request on nativ view + Then Start a new request on native view Then User should see available different choices of status @SNOWCADSR-200 diff --git a/src/test/java/PLATFORM_BUSINESS/CADSR/steps/NativeViewSteps.java b/src/test/java/PLATFORM_BUSINESS/CADSR/steps/NativeViewSteps.java index 502ab7deb..024dc5a9d 100644 --- a/src/test/java/PLATFORM_BUSINESS/CADSR/steps/NativeViewSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/CADSR/steps/NativeViewSteps.java @@ -36,7 +36,7 @@ public void getNativeView() { } @Then("Go to CADSR Requests") - public void clickonCADSRRequest() throws InterruptedException { + public void clickOnCADSRRequest() throws InterruptedException { nativeViewPage.clickOnCADSRRequest(); } @@ -78,7 +78,7 @@ public void approveRequest() throws InterruptedException { } @Then("State is Updated to {string}") - public void verifystate(String expectedState) throws Exception { + public void verifyState(String expectedState) throws Exception { Thread.sleep(2000); String actualState = nativeViewPage.getState(); CucumberLogUtils.logScreenshot(); @@ -95,7 +95,7 @@ public void openLatestBusinessCase() { @Then("Update details on Business form and submit") public void FillBusinessForm() throws InterruptedException { - nativeViewPage.enterTextInBusinessNeedBox("TestingAutomtaionTesting"); + nativeViewPage.enterTextInBusinessNeedBox("TestingAutomationTesting"); } @Then("Open Request Approval form and approve") @@ -103,7 +103,7 @@ public void approve() throws InterruptedException { nativeViewPage.approveRequestForm(); } - @Then("Click on Elevate Permision") + @Then("Click on Elevate Permission") public void elevatePermission() throws InterruptedException { nativeViewPage.elevateButton(); } @@ -113,19 +113,19 @@ public void user_should_see_Save_Add_Attachments_and_Submit_button() { nativeViewPage.switchToFrame(); Assert.assertTrue("Save button is not present on the screen", nativeViewPage.isElementPresent(nativeViewPage.saveButton)); - Assert.assertTrue("Add Attachement button is not present on the screen", + Assert.assertTrue("Add Attachment button is not present on the screen", nativeViewPage.isElementPresent(nativeViewPage.addAttachemdnBottom)); Assert.assertTrue("Submit button is not present on the screen", nativeViewPage.isElementPresent(nativeViewPage.submitButtonOnNewRequestForm)); } - @Then("Start a new request on nativ view") - public void start_new_Requst() { + @Then("Start a new request on native view") + public void start_new_Request() { nativeViewPage.startANewRequest(); } @Then("User should see available different choices of status") - public void validateStatusCHoices() throws Exception { + public void validateStatusChoices() throws Exception { nativeViewPage.allSelectOptions(); } @@ -151,7 +151,7 @@ public void user_should_see_Status_field() { } @Then("Validate parent ticket reference") - public void validatePerenetTicketReference() { + public void validateParentTicketReference() { nativeViewPage.validateParentTicketReference(); } @@ -161,7 +161,7 @@ public void validateTextOnLandingPage() { } @Then("validate text on request form page") - public void validateTextonRequestFormPage() { + public void validateTextOnRequestFormPage() { nativeViewPage.validateTextOnRequestFormPage(); } @@ -175,7 +175,7 @@ public void validatePageFooter() { nativeViewPage.checkIfPageFooterISasExpected(); } - @Then("validate that the list of organiation is as expected") + @Then("validate that the list of organization is as expected") public void validateTheListOfOrganization() throws Exception { nativeViewPage.validateTheListOfOrganization(); } diff --git a/src/test/java/PLATFORM_BUSINESS/CADSR/steps/ServicePortalSteps.java b/src/test/java/PLATFORM_BUSINESS/CADSR/steps/ServicePortalSteps.java index 57272a436..3e678ce75 100644 --- a/src/test/java/PLATFORM_BUSINESS/CADSR/steps/ServicePortalSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/CADSR/steps/ServicePortalSteps.java @@ -37,8 +37,8 @@ public void validatePortalURL() { @When("User Logins to the caDSR application") public void login() throws Exception { loginStepsImpl.enterUsername(""); - String decyptedPass = EncryptionUtils.decrypt(""); - loginStepsImpl.enterPassword(decyptedPass); + String decryptedPass = EncryptionUtils.decrypt(""); + loginStepsImpl.enterPassword(decryptedPass); loginStepsImpl.clickOnSignInButton(); } diff --git a/src/test/java/PLATFORM_BUSINESS/RCMDB/features/NativeView.feature b/src/test/java/PLATFORM_BUSINESS/RCMDB/features/NativeView.feature index b9402cd94..f919012fb 100644 --- a/src/test/java/PLATFORM_BUSINESS/RCMDB/features/NativeView.feature +++ b/src/test/java/PLATFORM_BUSINESS/RCMDB/features/NativeView.feature @@ -49,12 +49,11 @@ Feature: Recordmanagement feature files Then Click on submit record @QuaterlyCost - Scenario: Naviate to the Quaterly Costs and create new Quaterly Cost + Scenario: Navigate to the Quaterly Costs and create new Quaterly Cost Given user navigates to the Record management home page Then User logins to the application for RCMDB Then User clicks on Quarterly Costs - Then Click on new Quaterly Cost - Then Fill all the Quaterly Cost details + Then Click on new Quarterly Cost + Then Fill all the Quarterly Cost details Then Click on submit button - Then Validate added recorded - + Then Validate added recorded \ No newline at end of file diff --git a/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/BusinessCaseFormSteps.java b/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/BusinessCaseFormSteps.java index 3c030107e..6472075ce 100644 --- a/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/BusinessCaseFormSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/BusinessCaseFormSteps.java @@ -27,7 +27,7 @@ public void openATOApp() { } @When("Click on {string}") - public void navigateToQUickLin(String quickLinkOption) { + public void navigateToQuickLink(String quickLinkOption) { try { businessCaseFormPage.selectOptionFromQuickLink(quickLinkOption); } catch (Exception e) { @@ -36,7 +36,7 @@ public void navigateToQUickLin(String quickLinkOption) { } @Then("State is updated to {string}") - public void verifystate(String expectedState) throws Exception { + public void verifyState(String expectedState) throws Exception { Thread.sleep(7000); String actualState = businessCaseFormPage.getState(); CucumberLogUtils.logScreenshot(); @@ -110,7 +110,7 @@ public void openLatestIdeaCase() { @Then("Update details on business form and submit") public void FillBusinessForm() throws InterruptedException { - businessCaseFormPage.enterTextInBusinessNeedBox("TestingAutomtaionTesting"); + businessCaseFormPage.enterTextInBusinessNeedBox("TestingAutomationTesting"); } @Then("Go to Native view of application") @@ -118,7 +118,7 @@ public void getNativeView() { businessCaseFormPage.clickOnNativeView(); } - @Then("Click on Elevate permision") + @Then("Click on Elevate permission") public void elevatePermission() { businessCaseFormPage.elevateButton(); } @@ -138,8 +138,8 @@ public void askForMoreInfo() { businessCaseFormPage.askForMoreInfoOnRequestForm(); } - @Then("Verify Email notification withkk subject as {string}") - public void verifyEmailmm(String subject) throws InterruptedException { + @Then("Verify Email notification with subject as {string}") + public void verifyEmail(String subject) throws InterruptedException { boolean status = businessCaseFormPage.verifyEmail(subject); Assert.assertEquals(true, status); } @@ -160,8 +160,8 @@ public void Validate_tracking_log() { CucumberLogUtils.logScreenshot(); } - @Then("User clicks on Quaterly Costs") - public void User_clicks_on_Quaterly_Costs() { + @Then("User clicks on Quarterly Costs") + public void User_clicks_on_Quarterly_Costs() { businessCaseFormPage.clickOnQuaterlyCosts(); } @@ -171,7 +171,7 @@ public void User_clicks_on_RM_Tracking_Record_Import() { CucumberLogUtils.logScreenshot(); } - @Then("Click on new Quaterly Cost") + @Then("Click on new Quarterly Cost") public void Click_on_new_Quarterly_Cost() { businessCaseFormPage.clickOnNewQuarterlyCost(); } diff --git a/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/PortalViewSteps.java b/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/PortalViewSteps.java index d284ace7b..39929f9e6 100644 --- a/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/PortalViewSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/RCMDB/steps/PortalViewSteps.java @@ -31,8 +31,8 @@ public void login() throws Exception { if (loginStepsImpl.isLoginButtonDisplayed()) { loginStepsImpl.clckOnLoginButton(); loginStepsImpl.enterUsername(""); - String decyptedPass = EncryptionUtils.decrypt(""); - loginStepsImpl.enterPassword(decyptedPass); + String decryptedPass = EncryptionUtils.decrypt(""); + loginStepsImpl.enterPassword(decryptedPass); loginStepsImpl.clickOnSignInButton(); } } @@ -61,7 +61,7 @@ public void startIdea() { public void enterIdeaDetails() throws InterruptedException { portalViewPage.selectDocDirector("Justin Campany"); portalViewPage.fillFITARATextBox(); - portalViewPage.fillIDeaBox("Test IDea Form"); + portalViewPage.fillIDeaBox("Test Idea Form"); portalViewPage.programaticSUpportCheckBox(); } @@ -99,7 +99,7 @@ public void openLatestBusinessCase() { @Then("Update details on Business form and submit") public void FillBusinessForm() throws InterruptedException { - portalViewPage.enterTextInBusinessNeedBox("TestingAutomtaionTesting"); + portalViewPage.enterTextInBusinessNeedBox("TestingAutomationTesting"); } @Then("Open Request Approval form and approve") @@ -107,7 +107,7 @@ public void approve() throws InterruptedException { portalViewPage.approveRequestForm(); } - @Then("Click on Elevate Permision") + @Then("Click on Elevate Permission") public void elevatePermission() throws InterruptedException { portalViewPage.elevateButton(); } diff --git a/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/BusinessCaseFormSteps.java b/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/BusinessCaseFormSteps.java index ab2388c55..6c6b7cb6b 100644 --- a/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/BusinessCaseFormSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/BusinessCaseFormSteps.java @@ -21,7 +21,7 @@ public void before() { } @When("Click on {string}") - public void navigateToQUickLin(String quickLinkOption) { + public void navigateToQuickLin(String quickLinkOption) { try { businessCaseFormPage.selectOptionFromQuickLink(quickLinkOption); } catch (Exception e) { @@ -30,7 +30,7 @@ public void navigateToQUickLin(String quickLinkOption) { } @Then("State is updated to {string}") - public void verifystate(String expectedState) throws Exception { + public void verifyState(String expectedState) throws Exception { Thread.sleep(7000); String actualState = businessCaseFormPage.getState(); CucumberLogUtils.logScreenshot(); @@ -45,8 +45,8 @@ public void login() throws Exception { if (loginStepsImpl.isLoginButtonDisplayed()) { loginStepsImpl.clckOnLoginButton(); loginStepsImpl.enterUsername(""); - String decyptedPass = EncryptionUtils.decrypt(""); - loginStepsImpl.enterPassword(decyptedPass); + String decryptedPass = EncryptionUtils.decrypt(""); + loginStepsImpl.enterPassword(decryptedPass); loginStepsImpl.clickOnSignInButton(); } } @@ -60,7 +60,7 @@ public void startIdea() { public void fillIdeaDetails() throws InterruptedException { businessCaseFormPage.selectDocDirector("Justin Cam"); businessCaseFormPage.fillFITARATextBox(); - businessCaseFormPage.fillIDeaBox("Test IDea Form"); + businessCaseFormPage.fillIDeaBox("Test Idea Form"); businessCaseFormPage.programaticSUpportCheckBox(); } @@ -115,7 +115,7 @@ public void openLatestIdeaCase() { @Then("Update details on business form and submit") public void FillBusinessForm() throws InterruptedException { - businessCaseFormPage.enterTextInBusinessNeedBox("TestingAutomtaionTesting"); + businessCaseFormPage.enterTextInBusinessNeedBox("TestingAutomationTesting"); } @Then("Go to native view") @@ -123,7 +123,7 @@ public void getNativeView() { businessCaseFormPage.clickOnNativeView(); } - @Then("Click on Elevate permision") + @Then("Click on Elevate permission") public void elevatePermission() { businessCaseFormPage.elevateButton(); } diff --git a/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java b/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java index 33c062a13..7eafee0d8 100644 --- a/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/RCMDB/stepsImplementation/PortalViewSteps.java @@ -31,8 +31,8 @@ public void login() throws Exception { if (loginStepsImpl.isLoginButtonDisplayed()) { loginStepsImpl.clckOnLoginButton(); loginStepsImpl.enterUsername(""); - String decyptedPass = EncryptionUtils.decrypt(""); - loginStepsImpl.enterPassword(decyptedPass); + String decryptedPass = EncryptionUtils.decrypt(""); + loginStepsImpl.enterPassword(decryptedPass); loginStepsImpl.clickOnSignInButton(); } } @@ -43,7 +43,7 @@ public void getNativeView() { } @Then("Go to All Ideas") - public void clickonAllIdeaCase() { + public void clickOnAllIdeaCase() { portalViewPage.clickOnAllIdeas(); } @@ -82,7 +82,7 @@ public void approveRequest() throws InterruptedException { } @Then("State is Updated to {string}") - public void verifystate(String expectedState) throws Exception { + public void verifyState(String expectedState) throws Exception { Thread.sleep(2000); String actualState = portalViewPage.getState(); CucumberLogUtils.logScreenshot(); @@ -99,7 +99,7 @@ public void openLatestBusinessCase() { @Then("Update details on Business form and submit") public void FillBusinessForm() throws InterruptedException { - portalViewPage.enterTextInBusinessNeedBox("TestingAutomtaionTesting"); + portalViewPage.enterTextInBusinessNeedBox("TestingAutomationTesting"); } @Then("Open Request Approval form and approve") @@ -107,7 +107,7 @@ public void approve() throws InterruptedException { portalViewPage.approveRequestForm(); } - @Then("Click on Elevate Permision") + @Then("Click on Elevate Permission") public void elevatePermission() throws InterruptedException { portalViewPage.elevateButton(); } From ac0f766b7f2be63992a1a953e8ca4e33d4e87686 Mon Sep 17 00:00:00 2001 From: nekrashevicha2 Date: Tue, 17 Dec 2024 10:31:34 -0500 Subject: [PATCH 10/11] upd --- .../PLATFORM_BUSINESS/CADSR/steps/ServicePortalSteps.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/PLATFORM_BUSINESS/CADSR/steps/ServicePortalSteps.java b/src/test/java/PLATFORM_BUSINESS/CADSR/steps/ServicePortalSteps.java index 3e678ce75..c8920afcc 100644 --- a/src/test/java/PLATFORM_BUSINESS/CADSR/steps/ServicePortalSteps.java +++ b/src/test/java/PLATFORM_BUSINESS/CADSR/steps/ServicePortalSteps.java @@ -375,7 +375,7 @@ public void validatePriority() throws InterruptedException { } @Then("Go to native view") - public void getNativeViewm() { + public void getNativeView() { servicePortalPage.clickOnNativeView(); } @@ -417,7 +417,7 @@ public void assertCurationCountAs10() { servicePortalPage.verifyCurationCOunt(); } - @Then("Verify Email notificationkkk with subject as {string}") + @Then("Verify Email notification with subject as {string}") public void verifyEmailkkk(String subject) throws InterruptedException { boolean status = servicePortalPage.verifyEmail(subject); Assert.assertEquals(true, status); From 33b3b4b2cdb14c2c78b50b3d0bde32de085ff0d5 Mon Sep 17 00:00:00 2001 From: nekrashevicha2 Date: Tue, 17 Dec 2024 10:57:59 -0500 Subject: [PATCH 11/11] upd --- .../AwardNomination/Features/VIBEAppreciationRequest.feature | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/ServiceNow/AwardNomination/Features/VIBEAppreciationRequest.feature b/src/test/java/ServiceNow/AwardNomination/Features/VIBEAppreciationRequest.feature index 01d0a3a85..c13066a39 100644 --- a/src/test/java/ServiceNow/AwardNomination/Features/VIBEAppreciationRequest.feature +++ b/src/test/java/ServiceNow/AwardNomination/Features/VIBEAppreciationRequest.feature @@ -33,5 +33,4 @@ And User adds "Anna Nicholson" as a watcher Then User can see that Watch List ticket field is populated with "Anna Nicholson" name When User adds attachment - Then User can verify that attachment is added - + Then User can verify that attachment is added \ No newline at end of file