• Jenkins 构建 Allure Report at August 26, 2019


    楼主,参照你的方法,但是会报错,找不到我的目标文件。貌似是cd 这个命令不起作用。同样的命令在window 里面的dos界面执行,是ok的。不知道哪里出了毛病。可以帮助一下吗?多谢

  • 楼主你最后解决了吗?我现在也遇到这个问题

  • # This sample code uses the Appium python client
    # pip install Appium-Python-Client
    # Then you can paste this into a file and simply run with Python

    from appium import webdriver

    caps = {}
    caps["platformName"] = "android"
    caps["deviceName"] = "testnonull"
    caps["appPackage"] = "com.xueqiu.android"
    caps["appActivity"] = ".view.WelcomeActivityAlias"
    caps["autoGrantPermissions"] = "true"

    driver = webdriver.Remote("http://localhost:4723/wd/hub", caps)
    driver.implicitly_wait(10)

    el1 = driver.find_element_by_xpath("/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.view.ViewGroup/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.TabHost/android.widget.LinearLayout/android.widget.TabWidget/android.widget.RelativeLayout[2]/android.widget.ImageView")
    el1.click()

    driver.implicitly_wait(10)
    el2 = driver.find_element_by_id("com.xueqiu.android:id/action_create_cube")
    el2.click()

    driver.implicitly_wait(10)
    el3 = driver.find_element_by_id("com.xueqiu.android:id/search_input_text")
    el3.send_keys("alibaba")
    driver.implicitly_wait(10)
    el4 = driver.find_element_by_xpath("/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.view.ViewGroup/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.LinearLayout/android.support.v4.view.ViewPager/android.widget.RelativeLayout/android.widget.ListView/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.RelativeLayout[1]/android.widget.LinearLayout[2]/android.widget.TextView")
    el4.click()

    #driver.quit()

  • 我的appium界面一直都停留在雪球的启动页面,什么鬼。。手机已经进了主页面了

  • An unknown server-side error occurred while processing the command. Original error: Error getting device API level. Original error: Error executing adbExec. Original error: 'Command 'C:\Users\vicky\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s QMS4C16203008661 shell getprop ro.build.version.sdk' exited with code 1'; Stderr: 'error: device unauthorized.
    This adb server's $ADB_VENDOR_KEYS is not set
    Try 'adb kill-server' if that seems wrong.
    Otherwise check for a confirmation dialog on your device.'; Code: '1'

  • 3、由于系统自带的python是2.7.5;所以在cgi-bin目录下使用python -m CGIHTTPServer命令开启服务

    ==================================================================================
    我之前也是这个犯错,不要才cgi-bin 目录下开启服务, 你得在跟cgi-bin同级目录下开启服务。试试。😀

  • 统计Linux上的某个进程的cpu增长曲线,贴出代码

    top -b -d 1 -n 20 -p 13768 | grep 13768 |awk '{ cpu+=$9; print $9,cpu/NR }' | gnuplot -e "set terminal dumb;plot '<cat' using 1 with lines"

    统计App上某个业务操作期间内存增长情况,贴出代码

    for i in $(seq 20);do adb shell dumpsys meminfo com.sankuai.meituan.takeoutnew | grep 'Dalvik Heap' | awk '{print $3}';done | gnuplot -e "set terminal dumb;plot '<cat' using 1 with line"

    或者

    $ adb shell top -d 1 -n 20  | grep com.sankuai.meituan.takeoutnew |grep 'Dalvik Heap' |awk '{ print $3 }' | gnuplot -e "set terminal dumb;plot '<cat' using 1 with lines"
  • 显示是否有没有雇佣时间的员工

    select * from employees where hire_date is null;

    显示工作20年以上的员工

    select * from employees where DATEDIFF(CURRENT_DATE,hire_date) >=20

    显示以b下列开头的名字

    select distinctfirst_name from employees where first_name like 'b%'

    显示以fy结尾的名字

    select distinctfirst_name from employees where first_name like '%fy'

    显示包含we名字

    select distinctfirst_name from employees where first_name like '%we%'

    显示包含五个字符的名字

    select distinctfirst_name from employees where first_name like '_____'

  • '''
    top -b -d 1 -n 20 -p 16546 | grep 16546 | awk '{cpu+=$9;mem+=$10;print $9,$10,cpu/NR,mem/NR}'
    '''

  • curl -s https://testerhome.com/api/v3/topics.json | sed 's/}},{/}}{/g' | awk 'BEGIN{RS=""}{print $0}'