File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ def test_0_other_functions(self):
34
34
self .assertEqual ("Set call timeout to: 600000ms" , output .get_text ())
35
35
36
36
# Go back to authenticated scene
37
+ time .sleep (5 )
37
38
self .altdriver .find_object (By .NAME , "CancelButton" ).tap ()
38
39
self .altdriver .wait_for_current_scene_to_be ("AuthenticatedScene" )
39
40
Original file line number Diff line number Diff line change @@ -30,7 +30,11 @@ function Run-Pytest {
30
30
[string ]$testFile
31
31
)
32
32
Write-Output " Running pytest for $testFile ..."
33
- Start-Process - FilePath " pytest" - ArgumentList $testFile - NoNewWindow - PassThru | Wait-Process
33
+ $process = Start-Process - FilePath " pytest" - ArgumentList " -x" , $testFile - NoNewWindow - PassThru - Wait
34
+ if ($process.ExitCode -ne 0 ) {
35
+ Write-Output " Test failed for $testFile . Stopping execution."
36
+ exit $process.ExitCode
37
+ }
34
38
}
35
39
36
40
# Function to stop Chrome if it's running
@@ -105,7 +109,7 @@ function Logout {
105
109
Write-Output " Chrome executable not found."
106
110
exit
107
111
}
108
-
112
+
109
113
Start-Process - FilePath $chromePath - ArgumentList " --remote-debugging-port=9222"
110
114
111
115
Write-Output " Running python script to logout..."
You can’t perform that action at this time.
0 commit comments