exit test case

Exit the current test case (skip all remaining action lines in the current test case), and then continue with the next test case.
NameDescriptionTypeModifier
exit status

(Optional) Determine whether the overall final result status must be Not Finished or not. (see below)

Possible values:

  • Complete: The operation is successful.
  • Incomplete: The operation is unsuccessful.

Default Value: incomplete
Value Setincomplete, complete
None
This action may be used within the following project items: test modules and user-defined actions.
Example - Case 1: Exit status is Incomplete
Action lines
Test case: TC 01, Login
        
              	window
if window exists	login
	&nbsp
	exit status
exit test case	incomplete
	&nbsp
else	
	&nbsp
start application	
	&nbsp
end if	
        
    
Test case: TC 02, View Orders
        
              	window	control	value
enter	login	user name	alex
enter	login	password	ta
	&nbsp		
	window	control	
click	login	login	
	&nbsp		
	window		
check window exists	welcome		
	&nbsp		
	window	control	
click	welcome	view orders	
        
    
Result

When exit test case with the value of Incomplete is executed, the overall status of this test result is Not Finished.

Example - Case 2: Failure handler with arguments
Action lines
Test case: TC 01, Login
        
          	window
if window exists	login
	&nbsp
	exit status
exit test case	complete
	&nbsp
else	
	&nbsp
start application	
	&nbsp
end if	
        
    
Test case: TC 02, View Orders
        
              	window	control	value
enter	login	user name	alex
enter	login	password	ta
	&nbsp		
	window	control	
click	login	login	
	&nbsp		
	window		
check window exists	welcome		
	&nbsp		
	window	control	
click	welcome	view orders	
        
    
Result

When exit test case with the value of Complete is executed, the overall status of this result is by definition Not Finished. Infact, in this example, the status is Passed, because checkpoints are successful.

  • This action can be used to handle an error situation.

  • This action will exit from the INITIAL and FINAL sections of a test module, as well as from test cases.

  • When invoked from within a user-defined action, the calling test case is exited.

  • exit status argument:

    • This argument applies to TestArchitect 8.3 Update 5 and higher.

    Table 1. Exit Status Reference

    StatusDescription
    Incomplete(Default) The overall status of test results is always Not Finished.
    CompleteThe overall status of test results is not necessarily Not Finished.

Copyright © 2023 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1(800) 322-0333