<ruby id="h6500"><table id="h6500"></table></ruby>
    1. <ruby id="h6500"><video id="h6500"></video></ruby>
          1. <progress id="h6500"><u id="h6500"><form id="h6500"></form></u></progress>

            基于Selenium的web自動(dòng)化框架(7)

            發(fā)表于:2016-11-23來(lái)源:測試改進(jìn)工場(chǎng)作者:測試改進(jìn)工場(chǎng)點(diǎn)擊數: 標簽:框架
            def getCurrentTime(): format = %a %b %d %H:%M:%S %Y return datetime.now().strftime(format) # Get time diff def timeDiff(starttime,endtime): format = %a %b %d %H:%M:%S %Y return datetime.strptime(endti
            def getCurrentTime(): format = "%a %b %d %H:%M:%S %Y" return datetime.now().strftime(format) # Get time diff def timeDiff(starttime,endtime): format = "%a %b %d %H:%M:%S %Y" return datetime.strptime(endtime,format) - datetime.strptime(starttime,format)
            復制代碼

             

            測試用例信息類(lèi)用來(lái)標識測試用例,并且包括執行用例執行結果信息,主要包括以下字段:

            復制代碼
            class TestCaseInfo(object):  
                """description of class"""  
                def __init__(self, id="",name="",owner="",result="Failed",starttime="",endtime="",secondsDuration="",errorinfo=""):  
                    self.id = id  
                    self.name = name  
                    self.owner = owner  
                    self.result = result  
                    self.starttime = starttime  
                    self.endtime = endtime  
              self.secondsDuration = secondsDuration  
              self.errorinfo  
            
            
            
                       

            原文轉自:http://www.cnblogs.com/AlwinXu/p/5836709.html

            ...
            老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月
              <ruby id="h6500"><table id="h6500"></table></ruby>
              1. <ruby id="h6500"><video id="h6500"></video></ruby>
                    1. <progress id="h6500"><u id="h6500"><form id="h6500"></form></u></progress>