-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathUserOperations.java
More file actions
executable file
·30 lines (24 loc) · 1006 Bytes
/
UserOperations.java
File metadata and controls
executable file
·30 lines (24 loc) · 1006 Bytes
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
package operations;
import automationtestinstance.AutomationTestManager;
/**
*
* Created by ford.arnett on 9/3/15.
*/
public abstract class UserOperations implements TestInitializerListener {
AutomationTestManager am;
@Override
public void init(AutomationTestManager am) {
this.am = am;
}
public void takeScreenshot(String fileName) {
//This is temporary, when running on sauce this is erroring and killing the logs
if (am.config.remote == true) {
am.driverWrapper.takeScreenshotSuppressError(System.getProperty("user.dir") + "/extent_reports/mobile_screenshots/", fileName + "_" + System.currentTimeMillis() + ".png", "mobile_screenshots/");
} else {
am.driverWrapper.takeScreenshotSuppressError(am.config.screenshotsDirectory, fileName + "_" + System.currentTimeMillis() + ".png", "mobile_screenshots/");
}
}
public void waitLogErr(int millis) {
am.driverWrapper.waitLogErr(millis);
}
}