共 17 篇文章 |
|
Selenium2.0之WebDriver学习总结(2)Selenium2.0之WebDriver学习总结(2)List<WebElement> cheeses = driver.findElements(By.className("cheese"));WebElement cheese = driver.findElement(By.name("cheese"));WebElement cheese = driver.findElement(By.linkText("cheese"));WebElement cheese = dr... 阅2979 转27 评0 公众公开 12-05-25 16:44 |
QTP VS Selenium.为什么用Selenium.如果以上Selenium的优点不能打动你,又或者你是测试新手,对测试经验不多,对编程也不熟悉,那么你还是继续使用QTP吧,不过相信有一天,你会开始尝试Selenium的。在这里,我还想说一下关于Selenium名字的来源,很有意思的: >:Selenium的中文名为“硒”,是一种化学元素的名字,它对汞 (Mercury)有天然... 阅705 转10 评0 公众公开 12-05-25 13:22 |
PGT的传输与获取的过程:Proxy Service调用CAS的serviceValidate接口验证ST成功后,CAS首先会访问pgtUrl指向的https url,将生成的 PGT及PGTIOU传输给proxy service,proxy service会以PGTIOU为key,PGT为value,将其存储在Map中;用户凭借ST去访问Proxy service,Proxy service去CAS验证ST(同时传递PgtUrl参数给CAS),如果ST验证成功,则CAS... 阅4069 转13 评0 公众公开 12-05-11 17:04 |
上图是一个最基础的 CAS 协议, CAS Client 以 Filter 方式保护 Web 应用的受保护资源,过滤从客户端过来的每一个 Web 请求,同时, CAS Client 会分析 HTTP 请求中是否包请求 Service Ticket( 上图中的 Ticket) ,如果没有,则说明该用户是没有经过认证的,于是, CAS Client 会重定向用户请求到 CAS Server ( Step 2 )。CAS 规定 Service T... 阅184 转0 评0 公众公开 12-05-11 16:34 |
用Java和Perl登录新浪微博用Java和Perl登录新浪微博By icycandy, at 2011/02/22 10:05:55.public class SinaLogin{public static String login(String email, String passwd) throws HttpException, IOException{PostMethod post = new PostMethod("http://login.sina.com.cn/sso/login.php?client=ssologin.js(v1.3.11)");import or... 阅1399 转37 评0 公众公开 12-05-11 11:47 |