提交 fc756010 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

update test scripts

上级 f192cc8f
......@@ -7,7 +7,7 @@ pid=0
1. Load web page from url http://xxx
2. Retrieve img element zt-logo.png in html
3. Check img exist >> `必应`
3. Check img exist >> `Apple`
}
......@@ -16,16 +16,12 @@ package require tls
http::register https 443 tls::socket
set url https://cn.bing.com
set url https://www.apple.com
set http [::http::geturl $url]
set html [::http::data $http]
puts "$html"
regexp -- {<title>(.*?)>} $html match elem
puts "$elem"
set a abc
set b 测试
puts "$a $b"
regexp -- {<title>(.*?)</title>} $html match title
puts "$title"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册