You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							29 lines
						
					
					
						
							947 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							29 lines
						
					
					
						
							947 B
						
					
					
				
								# This is a sample Python script.
							 | 
						|
								import sys#
							 | 
						|
								# import jsonpickle # pip install jsonpickle
							 | 
						|
								import yaml # pip install pyyaml
							 | 
						|
								import ulrich.program
							 | 
						|
								from ulrich.componentHandling import ComponentManager
							 | 
						|
								import ulrich.message
							 | 
						|
								import utils.tdata_tool
							 | 
						|
								
							 | 
						|
								PROGRAM_NAME = "finish_testcase"
							 | 
						|
								
							 | 
						|
								if __name__ == '__main__':
							 | 
						|
								    x = ulrich.program.Job(PROGRAM_NAME)
							 | 
						|
								    x.startJob()
							 | 
						|
								    x.m.logInfo("hier eine LogInfo")
							 | 
						|
								    x.m.logDebug("hier eine DbugMeldung")
							 | 
						|
								    x.m.logDebug(str(vars(x.par)) + "\n" + str(vars(x.conf)))
							 | 
						|
								    if x.m.isRc("fatal"):
							 | 
						|
								        print("fatal Error at begin")
							 | 
						|
								        x.stopJob()
							 | 
						|
								        exit(x.m.rc * (-1) + 3)
							 | 
						|
								    # now in theory the program is runnable
							 | 
						|
								    cm = ComponentManager()
							 | 
						|
								    cm.initComponents()
							 | 
						|
								    comps = cm.getComponents(PROGRAM_NAME)
							 | 
						|
								    print("   relevant components for this job: " + str(comps))
							 | 
						|
								    tdata = utils.tdata_tool.getTestdata()
							 | 
						|
								    x.stopJob()
							 | 
						|
								# See PyCharm help at https://www.jetbrains.com/help/pycharm/
							 | 
						|
								
							 |