-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParallelTest.cs
More file actions
49 lines (40 loc) · 1.6 KB
/
ParallelTest.cs
File metadata and controls
49 lines (40 loc) · 1.6 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
41
42
43
44
45
46
47
48
49
using System;
using System.Threading;
using System.Collections.ObjectModel;
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Appium;
using OpenQA.Selenium.Appium.Android;
using OpenQA.Selenium.Support.UI;
using ExpectedConditions = SeleniumExtras.WaitHelpers.ExpectedConditions;
namespace android
{
[TestFixture("parallel", "pixel")]
[TestFixture("parallel", "nexus6")]
[Parallelizable(ParallelScope.Fixtures)]
public class ParallelTest : BrowserStackNUnitTest
{
public ParallelTest(string profile, string device) : base(profile,device){ }
[Test()]
public void testPOMLogIn()
{
LogInPageLeo logInPageLeo = new LogInPageLeo(driver);
Assert.IsTrue(logInPageLeo.IsLoaded);
MapPageLeo mapPageLeo = logInPageLeo.EnterCredentialsAndLogIn("milos.milicevic@acumenics.com", "pass1234");
Assert.IsTrue(mapPageLeo.IsLoadedAfterLogIn);
}
[Test()]
public void skipDFandCompleteTask()
{
testPOMLogIn();
MapPageLeo mapPageLeo = new MapPageLeo(driver);
MenuTabsPage menuTabsPage = mapPageLeo.openMenu();
Assert.IsTrue(menuTabsPage.IsDisplayed);
PropertyTasksPage propertyTasksPage = menuTabsPage.openTasksPage();
Assert.IsTrue(propertyTasksPage.IsDisplayed);
DynamicFormPage dynamicFormPage = propertyTasksPage.tapOnDFiconOnTask();
dynamicFormPage.tapOnSkipButtonAndCompleteTask();
Assert.IsTrue(dynamicFormPage.taskIsCompleted);
}
}
}