-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathServicesTest.java
More file actions
40 lines (33 loc) · 1.69 KB
/
ServicesTest.java
File metadata and controls
40 lines (33 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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 () {
page.clickServices();
page.clickMobileAutomation();
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 () {
page.clickServices();
page.clickDevOpsConsultancy();
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 () {
page.clickServices();
page.clickSoftwareDevelopment();
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 () {
page.clickServices();
page.clickAgileCoaching();
Assert.assertEquals(page.getTitle(), "QualityWorks Consulting Group | Agile Coaching and Training", "Testing if title is QualityWorks Consulting Group | Mobile and Web Automation");
}
}