-
Notifications
You must be signed in to change notification settings - Fork 25
Selectors, tests and functions #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jpottinger
wants to merge
5
commits into
master
Choose a base branch
from
julia-test-services-dropdown
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0851bf9
Selectors, tests and functions to test that the services dropdowns na…
jpottinger 0b6b377
Added comments
jpottinger 24e649d
Updated comments
jpottinger 6c951d4
added WebDriverWait. Note: there still exists some thread.sleep
jpottinger 14118ff
replaced thread.sleep with webdriver wait. Fixed space vs tabs along …
jpottinger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,4 +28,4 @@ public void setup(String url) { | |
| public void afterTest() { | ||
| page.tearDown(); | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| package com.qualityworkscg.tests; | ||
|
|
||
| import org.testng.Assert; | ||
| import org.testng.annotations.Test; | ||
|
|
||
| public class ServicesTest extends AbstractTest{ | ||
|
|
||
| @Test | ||
| //Function to verify that the Mobile Automation drop down navigates to the correct page. | ||
| public void verifyNavigationMobileAutomation () throws InterruptedException{ | ||
| page.clickServices(); | ||
| Thread.sleep(1000); | ||
| page.clickMobileAutomation(); | ||
| Thread.sleep(2000); | ||
| Assert.assertEquals(page.getTitle(), "QualityWorks Consulting Group | Mobile and Web Automation", "Testing if title is QualityWorks Consulting Group | Mobile and Web Automation"); | ||
| } | ||
|
|
||
| @Test | ||
| //Function to verify that the DevOps Consultancy drop down navigates to the correct page. | ||
| public void verifyNavigationDevOpsConsultancy () throws InterruptedException{ | ||
| page.clickServices(); | ||
| Thread.sleep(1000); | ||
| page.clickDevOpsConsultancy(); | ||
| Thread.sleep(2000); | ||
| Assert.assertEquals(page.getTitle(), "QualityWorks Consulting Group | DevOps Consultancy", "Testing if title is QualityWorks Consulting Group | Mobile and Web Automation"); | ||
| } | ||
|
|
||
| @Test | ||
| //Function to verify that the Software Development drop down navigates to the correct page. | ||
| public void verifyNavigationSoftwareDevelopment () throws InterruptedException{ | ||
| page.clickServices(); | ||
| Thread.sleep(1000); | ||
| page.clickSoftwareDevelopment(); | ||
| Thread.sleep(2000); | ||
| Assert.assertEquals(page.getTitle(), "QualityWorks Consulting Group | Software Development Consultancy", "Testing if title is QualityWorks Consulting Group | Mobile and Web Automation"); | ||
| } | ||
|
|
||
| @Test | ||
| //Function to verify that the Agile Coaching drop down navigates to the correct page. | ||
| public void verifyNavigationAgileCoaching () throws InterruptedException{ | ||
| page.clickServices(); | ||
| Thread.sleep(1000); | ||
| page.clickAgileCoaching(); | ||
| Thread.sleep(2000); | ||
| Assert.assertEquals(page.getTitle(), "QualityWorks Consulting Group | Agile Coaching and Training", "Testing if title is QualityWorks Consulting Group | Mobile and Web Automation"); | ||
| } | ||
|
|
||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jpottinger Is there a way can test these without explicitly calling
Thread.sleep