测试路漫漫, 吾将上下求索.
两年多开发经验, 六年整测试经验.
比较熟悉web自动化测试, especially in Ruby & Watir.
正在探讨Agile 测试, Junit testing in Agile.
联系方式:myfengliu@hotmail.com
发布新日志
-
2010-12-29 09:05:17
查看(2)
评论(0)
收藏
分享
管理
-
2009-03-03 14:20:39
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/
查看(162)
评论(0)
收藏
分享
管理
-
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
查看(489)
评论(0)
收藏
分享
管理
-
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))
查看(426)
评论(0)
收藏
分享
管理
-
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:
- Email trigger, emails should be automated trigger out
- Construct mail content expected result, meanwhile contstruct regular expression that will be used to fetch the real email content.
- Compare expected content and real content
- Log the compare result.
In the implement, we abstract an email checker to help us do email compare, the logic of the email checker:
- Download email from pop server, it may be mail list
- Get the right email by time stamp
- Decode mail content, normally mail content is encoded
- Using regular expression to fetch real email content
- Compare real email content and expect content
- 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.
查看(455)
评论(0)
收藏
分享
管理