自動化測試框架 Robot Framework 使用快速入門(6)

發表于:2011-10-08來源:未知作者:領測軟件測試網采編點擊數: 標簽:
def status_should_be(self, expected_status): if expected_status != self._status: raise AssertionError(Expected status to be %s but was %s % (expected_status, self._status)) def _run_command(self, comm

  def status_should_be(self, expected_status):

  if expected_status != self._status:

  raise AssertionError("Expected status to be '%s' but was '%s'"

  % (expected_status, self._status))

  def _run_command(self, command, *args):

  command = '"%s" %s %s' % (self._sut_path, command, ' '.join(args))

  process = os.popen(command)

  self._status = process.read().strip()

  process.close()

原文轉自:http://www.anti-gravitydesign.com

国产97人人超碰caoprom_尤物国产在线一区手机播放_精品国产一区二区三_色天使久久综合给合久久97