@@ -34,7 +34,7 @@ def setUp(self):
34
34
'platformName' : 'iOS' ,
35
35
'platformVersion' : '13.3' ,
36
36
'automationName' : 'XCUITest' ,
37
- 'app' : '/Users/prashanth/Projects /apps/iOS-Simulator-NativeDemoApp-0.2.1.app'
37
+ 'app' : f' { os . popen ( "pwd" ). read (). rstrip () } /data /apps/iOS-Simulator-NativeDemoApp-0.2.1.app'
38
38
}
39
39
40
40
elif self .app == 'android' :
@@ -44,7 +44,7 @@ def setUp(self):
44
44
'deviceName' : 'PF' ,
45
45
'wdaLocalPort' : Driver .wda_port (self ),
46
46
'udid' : Driver .android_device_name (self ),
47
- 'app' : '/Users/prashanth/Projects /apps/app-staging-debug.apk' ,
47
+ 'app' : f' { os . popen ( "pwd" ). read (). rstrip () } /data /apps/app-staging-debug.apk' ,
48
48
'noReset' : True
49
49
}
50
50
@@ -64,19 +64,19 @@ def setUp(self):
64
64
def android (self ):
65
65
if self .device == 'emulator' :
66
66
return dict (platformName = 'Android' , platformVersion = '' , deviceName = 'PF' ,
67
- app = '/Users/prashanth/Projects /apps/Android-NativeDemoApp-0.2.1.apk' , noReset = True )
67
+ app = f' { os . popen ( "pwd" ). read (). rstrip () } /data /apps/Android-NativeDemoApp-0.2.1.apk' , noReset = True )
68
68
elif self .device == 'real device' :
69
69
return dict (platformName = 'Android' , platformVersion = '' , deviceName = 'PF' ,
70
- app = '/Users/prashanth/Projects /apps/Android-NativeDemoApp-0.2.1.apk' , noReset = True )
70
+ app = f' { os . popen ( "pwd" ). read (). rstrip () } /data /apps/Android-NativeDemoApp-0.2.1.apk' , noReset = True )
71
71
72
72
def ios (self ):
73
73
if self .device == 'simulator' :
74
74
return dict (platformName = 'iOS' , platformVersion = '13.3' , deviceName = 'iPhone 11' ,
75
- app = '/Users/prashanth/Projects /apps/iOS-RealDevice-NativeDemoApp-0.2.1.app' , automationName = 'XCUITest' )
75
+ app = f' { os . popen ( "pwd" ). read (). rstrip () } /data /apps/iOS-RealDevice-NativeDemoApp-0.2.1.app' , automationName = 'XCUITest' )
76
76
elif self .device == 'real device' :
77
77
return dict (platformName = 'iOS' , platformVersion = '14.0' , deviceName = 'iPhone X' ,
78
- udid = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx ' , useNewWDA = True ,
79
- app = '/Users/prashanth/Projects /apps/iOS-RealDevice-NativeDemoApp-0.2.1.ipa' , automationName = 'XCUITest' )
78
+ udid = f' { UDID } ' , useNewWDA = True ,
79
+ app = f' { os . popen ( "pwd" ). read (). rstrip () } /data /apps/iOS-RealDevice-NativeDemoApp-0.2.1.ipa' , automationName = 'XCUITest' )
80
80
81
81
def tearDown (self ):
82
82
Driver .screenshot_on_failure (self )
0 commit comments