예제 #1
0
    def handleResult(self):
        result = Test.handleResult(self).split(
            "Server Report:")[1].strip().split("\n")[0]
        items = result.split(" ")
        valor = float(items[12])
        m = {"K": 10**3, "M": 10**6, "G": 10**9, "b": 1}
        mult = items[13][0]

        valor = valor * m[mult]

        return [valor]
예제 #2
0
 def handleResult(self):
     result = Test.handleResult(self).split(
         "Connection rate:")[1].strip().split("\n")[0]
     valor = float(result.split(" ")[0])
     return [valor]