摘要: #all_test.py#coding:UTF-8 import unittest import HTMLTestRunner import time import smtplib from email.mime.text import MIMEText import os #===================定义发送邮件======================== def send_... 阅读全文
posted @ 2018-10-30 15:13 paulwang2018 阅读(600) 评论(0) 推荐(0) 编辑
摘要: import unittest import HTMLTestRunner import time from ios_login import driver # from appium.webdriver.common.mobileby import MobileBy ReferenceNumber="2072109" #require unique customerName=... 阅读全文
posted @ 2018-10-30 15:07 paulwang2018 阅读(495) 评论(0) 推荐(0) 编辑
摘要: import requests import json url = 'http://music.163.com/weapi/v1/resource/comments/R_SO_4_551816010?csrf_token=568cec564ccadb5f1b29311ece2288f1' headers = { 'User-Agent':'Mozilla/5.0 (Windows NT... 阅读全文
posted @ 2018-10-30 15:06 paulwang2018 阅读(1217) 评论(0) 推荐(0) 编辑
摘要: #coding:utf8 from appium import webdriver desired_caps = {} desired_caps['platformName'] = 'Android' desired_caps['platformVersion'] = '5.1.1' desired_caps['deviceName'] = 'Android Emulator' desired... 阅读全文
posted @ 2018-10-29 15:27 paulwang2018 阅读(130) 评论(0) 推荐(0) 编辑
摘要: #coding=utf8 import json import unittest class TestDictCompare(unittest.TestCase): def test_jsondiff_same(self): # self.maxDiff=None oldJson=json.loads('{"title":"com.tencent.new... 阅读全文
posted @ 2018-10-29 15:24 paulwang2018 阅读(887) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8 from appium import webdriver import time cap={ "platformName":"iOS", "platformVersion":"11.3", "deviceName":"iPad Air", "automationName":"XCUITest... 阅读全文
posted @ 2018-10-29 14:48 paulwang2018 阅读(3688) 评论(0) 推荐(0) 编辑
摘要: from matplotlib import pyplot as plt from matplotlib import animation import os,re # import numpy as np def getTotalPss(): lines=os.popen("adb shell dumpsys meminfo com.rn_kiosk").readlines() ... 阅读全文
posted @ 2018-10-26 12:05 paulwang2018 阅读(698) 评论(0) 推荐(0) 编辑
摘要: 性能测试报告 1 概述 1.1性能测试概念 性能测试是通过自动化的测试工具模拟多种正常峰值及异常负载条件来对系统的各项性能指标进行测试。负载测试和压力测试都属于性能测试,两者可以结合进行。通过负载测试确定在各种工作负载下系统的性能,目标是当负载逐渐增加时,测试系统的各项性能指标的变化情况。压力测试是 阅读全文
posted @ 2018-10-25 17:50 paulwang2018 阅读(30309) 评论(0) 推荐(1) 编辑
摘要: #coding=utf-8 from locust import HttpLocust,TaskSet,task import queue import random class test_taskset(TaskSet): @task def register(self): try: email=self.locust.emailq... 阅读全文
posted @ 2018-10-25 17:25 paulwang2018 阅读(245) 评论(0) 推荐(0) 编辑
摘要: # 保存为locustfile.py # coding=utf-8 from locust import HttpLocust, TaskSet, task ''' 实现场景:先登录(只登录一次),然后访问->我的地盘页->产品页->项目页 访问我的地盘页面权重为2,产品页和项目页权重各为1 ''' # token=None class UserBehavior(TaskSet): #... 阅读全文
posted @ 2018-10-25 17:24 paulwang2018 阅读(228) 评论(0) 推荐(0) 编辑