File tree 1 file changed +26
-0
lines changed
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ require 'test_helper'
2
+
3
+ # $ rake test:func:ios TEST=test/functional/ios/ios/mjpeg_server_test.rb
4
+ # rubocop:disable Style/ClassVars
5
+ class AppiumLibCoreTest
6
+ module Ios
7
+ class MjpegServerTest < AppiumLibCoreTest ::Function ::TestCase
8
+ def setup
9
+ @@core ||= ::Appium ::Core . for ( Caps . ios )
10
+ @@driver ||= @@core . start_driver
11
+ end
12
+
13
+ def teardown
14
+ save_reports ( @@driver )
15
+ end
16
+
17
+ # Can view via http://localhost:9100 by default
18
+ def test_config
19
+ @@driver . update_settings ( { mjpegServerScreenshotQuality : 10 , mjpegServerFramerate : 1 } )
20
+ @@driver . update_settings ( { mjpegServerScreenshotQuality : 0 , mjpegServerFramerate : -100 } )
21
+ @@driver . update_settings ( { mjpegServerScreenshotQuality : -10 , mjpegServerFramerate : 60 } )
22
+ @@driver . update_settings ( { mjpegServerScreenshotQuality : 100 , mjpegServerFramerate : 60 } )
23
+ end
24
+ end
25
+ end
26
+ end
You can’t perform that action at this time.
0 commit comments