• 爬虫碰到古怪的接口 at 2018年07月20日

    那你来详解一下吧,愿闻其详😂

  • 楼主你最好去寻找一下你的需求是什么? 如果是为了部门绩效,你得重新做一个,如果是真的为了让测试人员编写UI自动化更快的话,建议用katalon studio

  • 爬虫碰到古怪的接口 at 2018年07月20日

    曾经我在公司提过和你一样的BUG,参数放在url中为什么不用get,要用post然后被开发怼说我不懂技术

  • 启动的时候,报错,没有配置Android环境变量。这台电脑,确实没下载Android相关的东西。不过用了pip install lyrebird-android

    Exception in thread Thread-1:
    Traceback (most recent call last):
      File "c:\programdata\anaconda3\lib\threading.py", line 916, in _bootstrap_inner
        self.run()
      File "c:\programdata\anaconda3\lib\threading.py", line 864, in run
        self._target(*self._args, **self._kwargs)
      File "c:\programdata\anaconda3\lib\site-packages\lyrebird_android\device_service.py", line 32, in run
        self.handle()
      File "c:\programdata\anaconda3\lib\site-packages\lyrebird_android\device_service.py", line 38, in handle
        devices = android_helper.devices()
      File "c:\programdata\anaconda3\lib\site-packages\lyrebird_android\android_helper.py", line 365, in devices
        check_android_home()
      File "c:\programdata\anaconda3\lib\site-packages\lyrebird_android\android_helper.py", line 51, in check_android_home
        raise AndroidHomeError('Not set env : ANDROID_HOME')
    lyrebird_android.android_helper.AndroidHomeError: Not set env : ANDROID_HOME
    

    把fiddler的证书删除之后,可以正常抓包了


  • 证书已经按照,然而就是HTTPS的不行,HTTP的可以。
    用的360手机,百度首页就是打不开

  • Postman 使用详解 at 2018年07月19日

    想知道,你们一般什么情况下用postman?我只会在单独试一试这个接口能不能通的情况下用,你们会把用postman组成test suite用来每日测试吗

  • 亲,%homepath% 指的应该是python的目录吧? 我的python3是用Anaconda3装的
    C:\ProgramData\Anaconda3\Lib\site-packages\lyrebird\templates目录下有一个logging_config.ini
    但是我打开文件,里面没有路径呀,以下是文件内容

    [loggers]
    keys = root
    
    [logger_root]
    level = NOTSET
    handlers = stream, logFileHandler
    
    [handlers]
    keys = stream, logFileHandler
    
    [handler_stream]
    class = StreamHandler
    level = DEBUG
    formatter = stream
    args = ''
    
    [handler_logFileHandler]
    class = logging.handlers.TimedRotatingFileHandler
    level = NOTSET
    formatter = logFileFormatter
    suffix = %Y-%m-%d
    args =
    
    [formatters]
    keys = stream, logFileFormatter
    
    [formatter_stream]
    class = lyrebird.mock.logger_helper.ColorFormatter
    format = %(levelname)s - [%(module)s] - %(message)s
    
    [formatter_logFileFormatter]
    format = %(asctime)s - %(levelname)s - [%(module)s] - %(threadName)s [PID] %(process)s - %(message)s
    datefmt = %Y-%m-%d %H:%M:%S
    
  • 我也遇到了和你一样的BUG,不支持windows, 我看github上已经有人提bug了,等他们修吧

  • 产品工资高,好事呀

  • 爬虫 + 接口处理垃圾数据 at 2018年07月16日

    作者既然是用request库来解析html,为什么不用这个库呢?https://github.com/kennethreitz/requests-html 这个才是主流吧?

Let me remind you that the initial idea behind Page Objects was to encapsulate (read: hide) logic of working with page elements. Tests should not operate with page elements / locators / XPaths. Tests should use methods of Page Object instead. So, if you even declare fields for page page elements, please, make them private!

Let methods of Page Object be public and fields private.

Otherwise OOP is just nonsense.