def writeToFile(text, testId):
      filename = grinder.getFilenameFactory().createFilename(
          testId + "-page", "-%d.html" % grinder.runNumber)

      file = open(filename, "w")
      print >> file, text
      file.close()
Exemplo n.º 2
0
def logResponse(response):
  fileName = grinder.getFilenameFactory().createFilename('responselog', '_%d.html' % grinder.runNumber)
  f = open(fileName, 'w')
  f.write(response.getText())
  f.close()
Exemplo n.º 3
0
def writeToFile(text):
	varTime = System.currentTimeMillis()
	filename = grinder.getFilenameFactory().createFilename("page", "-%d.html" % varTime)
	file = open(filename, "w")
	print >> file, text
	file.close()