Ejemplo n.º 1
0
        "trial": 1,
        "csvfile": "vw1.csv",
        "pdffile": "vw.pdf",
        "testnote": "uploadbytestvwcurl.py",
    }
    if len(sys.argv) != 2:
        print "--Wrong usage ! The program exited!--"
        sys.exit(1)

    orderid = sys.argv[1]
    if not orderid.isdigit():
        print "The order ID is not correct format, please check it again"
        sys.exit(1)

    print "Now run the cases from TMS server testorder ID: %s" % orderid
    runningcases, testbed, upload_result["testplan"] = TMS.getcase(orderid)
    running_status = TMS.getrunningstatus(orderid)
    totalcases = len(runningcases)
    print totalcases, testbed, running_status, runningcases, Tstype
    upload_result["tstype"] = Tstype

    print "The cases to run are:"

    for i in runningcases:
        print i
        """
		testvar()
		print "the type"+str(result_TMS_supported)
		match=re.search(r'^(\d{1,3})\t(\d{1,4})\t(\d{1,3})\t(.+)\t(\d+)\t(\d+)',i)
		print match.group(5),match.group(6)
		configfileid=match.group(6)
Ejemplo n.º 2
0
	testcaseid=''
	#upload_result['testdate']=time.strftime('%Y-%m-%d')
	
	if len(sys.argv) != 2 :
	 	print '--Wrong usage ! The program exited!--'
		sys.exit(1)
		
	orderid=sys.argv[1]
	if not orderid.isdigit():
		print 'The order ID is not correct format, please check it again'
		sys.exit(1)
		
  	print "Now run the cases from TMS server testorder ID: %s" %orderid
  	#tooltype,swbuild,product_id,testbed,tl_testplanid,runningcases=getcase(orderid)
  	#upload_result["resulttype"],upload_result['swbuild_id'],upload_result['product_id'],testbed,tl_testplanid,runningcases=TMS2.getcase(orderid)
  	upload_result['swbuild_id'],upload_result['product_id'],testbed,upload_result['testplan'],dut_parameter['APModel'],dut_parameter['APSWVersion'],runningcases,dut_parameter['IP'],dut_parameter['NumTxAntennas'],dut_parameter['NumTxAntennas5G']=TMS.getcase(orderid) 
	print dut_parameter['IP'],dut_parameter['NumTxAntennas'],dut_parameter['NumTxAntennas5G']  	
	#upload_result['testplan']=match.group(2)
	#runningcases,testbed,upload_result['testplan']=TMS2.getcase(orderid)
	#dut_parameter['IP'],dut_parameter['NumTxAntennas'],dut_parameter['NumTxAntennas5G']
	
	totalcases=len(runningcases)
	print "There are total %s cases to run.\n"%totalcases
	running_status=TMS.getrunningstatus(orderid)	
	if running_status==1:
		print "The running status is 1, the test can start."
	else:
		print "The running status is 0,stop the test"
		#sys.exit(1)
	
	#print totalcases,testbed,running_status,runningcases,Tstype