Skip to content

Commit

Permalink
specify max recording time limit to 1800: [XCUITest] The timeLimit va…
Browse files Browse the repository at this point in the history
…lue must be in range [1, 1800] seconds. The value of '3600' has been passed instead.
  • Loading branch information
vdelendik committed Feb 19, 2021
1 parent c200252 commit a69bb00
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ private boolean isRecording(String sessionId) {
private void startRecording(String sessionId, String appiumUrl, TestSession session) {
// TODO: organize overriding video options via capabilitities. Think about putting all options.* one more time if exist
Map<String, String> options = new HashMap<>();
options.put("timeLimit", "3600"); // 1 hour as maximal video recording duration
// Unable to specify video recording time limit for more then 1800 sec due to the appium failure:
// [XCUITest] The timeLimit value must be in range [1, 1800] seconds. The value of '3600' has been passed instead.
options.put("timeLimit", "1800"); // 1 hour as maximal video recording duration

if (Platform.ANDROID.equals(Platform.fromCapabilities(session.getRequestedCapabilities()))) {
options.put("forceRestart", "true");
options.put("bitRate", "1000000");
Expand Down

0 comments on commit a69bb00

Please sign in to comment.