测试路漫漫, 吾将上下求索. 两年多开发经验, 六年整测试经验. 比较熟悉web自动化测试, especially in Ruby & Watir. 正在探讨Agile 测试, Junit testing in Agile. 联系方式:myfengliu@hotmail.com

发布新日志

  • watir pop up

    2010-12-29 09:05:17

  • ruby book

    2009-03-03 14:20:39

    Programming Ruby

    http://www.ruby-doc.org/docs/ProgrammingRuby/

    Learn to Program


    http://www.pragprog.com/titles/fr_ltp/learn-to-program


    Ruby Languange:
    http://www.ruby-lang.org/en/

    ruby IDE
    http://www.netbeans.org/

  • watir guide

    2009-02-23 13:53:25

    http://wiki.openqa.org/display/WTR/Tutorial

    http://wtr.rubyforge.org/rdoc/

    IE Dom Inspector is very helpful tool to identify the elements in the web page

    If you are not sure about where to load the file you execute, you can use
    puts $LOAD_PATH to check

    if the ruby string is too long, use \ to change line
  • ruby net协议实现download file 和http头信息读取

    2009-01-09 15:46:01

    require 'net/http'
    require 'uri'

    url = URI.parse('http://test/testapi?wsdl')
    res = Net::HTTP.start(url.host, url.port) {|http|
        http.get("testapi?wsdl")
      }

    str = res.body
     
      open("/wsdl.xml", "wb") { |file|
        file.write(res.body)
       }

    如果是读取redirect中间页面的信息:
     res =Net::HTTP.get(URI.parse(http://test/testapi.html))
  • Email check automation solution

    2008-12-16 23:20:31

    If you have a lot of emails to check in testing, believe you are sick of do the contect check day by day. If the machine can help you to do the email check, that will be great news for you. How could let machine help you do that? We should think about below steps:
    1. Email trigger, emails should be automated trigger out
    2. Construct mail content expected result, meanwhile contstruct regular expression that will be used to fetch the real email content.
    3. Compare expected content and real content
    4. Log the compare result.
    In the implement, we abstract an email checker to help us do email compare, the logic of the email checker:
    1. Download email from pop server, it may be mail list
    2. Get the right email by time stamp
    3. Decode mail content, normally mail content is encoded
    4. Using regular expression to fetch real email content
    5. Compare real email content and expect content
    6. Log the compare result 
    After that, an email check automation solution comes out. It seems very simple,then maybe someone askes what technology we use to implement this, --Ruby. 
Open Toolbar