`
文章列表
为当前用户创建cron服务 1.  键入 crontab  -e 编辑crontab服务文件       例如 文件内容如下:      */2 * * * * /bin/sh /home/admin/jiaoben/buy/deleteFile.sh      保存文件并并退出      */2 * * * * /bin/sh /home/admin/jiaoben/buy/deleteFile.sh   ...
1.selenium中如何判断元素是否存在? 2.selenium中hidden或者是display = none的元素是否可以定位到? 3.selenium中如何保证操作元素的成功率?也就是说如何保证我点击的元素一定是可以点击的? 4.如何提高selenium脚本的执行速度? 5.用例在运行过程中经常会出现不稳定的情况,也就是说这次可以通过,下次就没办法通过了,如何去提升用例的稳定性?
Started InternetExplorerDriver server (64-bit) 2.42.0.0 Listening on port 29792 Exception in thread "main" org.openqa.selenium.remote.SessionNotFoundException: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode mu ...
         最近做压测,需要监控每台服务器的磁盘I/O,由于每台服务器的磁盘名称可能不一样,所以需要用到Zabbix的LLD功能来发现磁盘并监控I/O。 参考文章 http://www.programering.com/a/MDOwYDNwATc.html 一、客户端(被监控端) 1.发现磁盘的脚本(disk_discovery.sh) #!/bin/bash #written by lenwood #mail: diskarray=(`cat /proc/diskstats |grep -E "\b[sv]d[abcdefg]\b|\bxvd[abcdefg ...
root@zabbixserv:# /etc/init.d/apache2 restart   * Restarting web server apache2                               AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using IP. Set the 'ServerName' directive globally to suppress this message                         ...

今天你BDD了吗?

    博客分类:
  • BDD
    转载:http://www.iteye.com/topic/417899 Feature: Sign in   In order to get access to protected sections of the site   A user   Should be able to sign in     Scenario: User is not signed up       Given no user exists with an email of "email@person.com"       When I go to the sign in page  ...
1.pip install lettuce 2.lettuce的时候报错了  信息主要是:pkg_resources.DistributionNotFound 解决方案:       pip install -U setuptools 3.继续lettuce c:\Python27\Lib\site-packages>lettucec:\Python27\lib\site-packages\fuzzywuzzy\fuzz.py:33: UserWarning: Using slow pure-python SequenceMatcher. Install python-L ...
一、Appium_Python_Client介绍    Appium的实用方法都藏在Client的源码里,对于driver和webelement实例,均有对应的元素查找方法(webelement查找的是下面的子元素),有些儿专门针对手机的函数,则需要在这个Client安装后方可使用。 (以下内容转自:http://testerhome.com/topics/1166) appium为了实现自己的find查找方式,首先自定义了一个MobileBy类,给这个类对象塞入了它定义的一些扩展属性,这些属性的值会通过webdriver协议推送到server端去识别和执行,为了让这些属性运用到fin ...
带的小弟遇到这个问题不知所措就找我解决,记录一下。 执行如下代码,chrome和IE都OK,执行火狐就挂了。 #浏览器数组lists = ['chrome','internet explorer','firefox']#循环浏览器执行脚本       for browser in lists:    print browser    driver = Remote(command_executor='http://127.0.0.1:4444/wd/hub',                    desired_capabilities={'platform':'ANY',       ...
上周日晚上听了一位大神的公开课,讲的是appium的配置,由于是小白,之前也没有弄过,工作中也没有用到就一直也没有配置。今天中午一哥们说他遇到问题没有搞定,问我环境搭建了没,刚好下午不怎么忙,明天端午了(端午出去玩)所以下午就装了一下,在此记录一下安装过程。 一、安装node.js node.js 官方网址:https://nodejs.org/   根据操作系统下载相应的版本 二、安装appium 在网上看见有很多推荐使用命令行的,但是我试了,或许是网速问题,都没有成功。 在Appium官方网站上下载操作系统相应的Appium版本。 https://bitbucket. ...
问题描述:昨天晚上大厦停电,然后我们把所有的服务都停了,今天早上一大早来了启动的时候发现启动了过了大15s又关闭了。 root@ubuntu:/opt/nexus-2.8.0-05/bin# ./nexus status****************************************WARNING - NOT RECOMMENDED TO RUN AS ROOT****************************************Nexus OSS is running (31347). root@ubuntu:/opt/nexus-2.8.0-05/bin# ...
问题描述: 使用selenium.webdriver调用firefox运行脚本的时候,打开浏览器时总是弹出安装向导 解决方法: 修改C:\Users\Administrator\AppData\Roaming\Mozilla\Firefox\profiles.ini 文件 修改如下红色部分代码的值为0:        [Profile0]      Name=default      IsRelative=0       Path=Profiles/jvaup1fb.default
plantomjs最初是放在D:\\phantomjs\\bin\\phantomjs.exe 环境变量也添加了,各种尝试都是如下错误: error: selenium.common.exceptions.WebDriverException: Message: Unable to start phantomjs with ghostdriver.Screenshot: available via screen 后来我放到C盘 #指定 phantomjs 驱动path1='C:\\Python27\\phantomjs\\bin\\phantomjs.exe' path2='C:\\ ...
代码: driver = webdriver.Remote(                                          command_executor=' http://127.0.0.1:4444/wd/hub',                                          desired_capabilities={'platform': 'ANY',                                          'browserName': 'htmlunit',                            ...
我本人比较喜欢相对路径,因为很多时候不同系统下使用绝对路径复用性太差。 问题描述:执行某个项目的所有测试用例的时候,遇到读取某个目录下面的文件,使用相对路径有时候达不到效果 比如如下结构: test_project     test_case         pub               init.py               public.py          test_login.py          test_send_email.py      report          xxx.html      test_data         lo ...
Global site tag (gtag.js) - Google Analytics