- 博客(17)
- 资源 (15)
- 收藏
- 关注
转载 windows 下安装 mongodb
准备工作:到官方下载合适的版本 http://www.mongodb.org/downloads这里用的是mongodb windows 32bit 版解压mongodb到D:\mongodb\ 目录,同时在mongodb目录中新建目录db(用于存放数据)和目录logs(存放日志),那么mongodb目录中就应该有了这些文件,如图:在D:\mongodb\l
2013-09-13 22:26:05 1793
转载 WebDriver_Java(等待页面元素加载完成)
web的自动化测试中,我们经常会遇到这样一种情况:当我们的程序执行时需要页面某个元素,而此时这个元素还未加载完成,这时我们的程序就会报错。怎么办?等待。等待元素出现后再进行对这个元素的操作。在selenium-webdriver中我们用两种方式进行等待:明确的等待和隐性的等待。 一、明确的等待明确的等待是指在代码进行下一步操作之前等待某一个条件的发生。最不好的情况是使用Thread
2013-09-10 16:18:44 3893
原创 WebDriver_Java实例代码(getWindowHandles)
import org.openqa.selenium.*;import org.openqa.selenium.WebDriver.*;import org.openqa.selenium.firefox.*;public class WebDriver_SwitchWindow {public static void main(String[] args) throws Int
2013-09-10 14:19:35 6015
转载 WebDriver_Java基本UI控件操作
1. 文本框Textbox // Find the username input element by its name WebElement username = driver.findElement(By.name("username")); // Enter the user name: jill username.clear();
2013-09-09 16:42:28 1026
转载 Webdriver_Ruby实例代码(3)
require 'watir-webdriver'browser=Watir::Browser.start "http://www.baidu.com" :chromebroser.add_checker do |page| page.text.include?("Server Error") and puts "Application exception or 500 erro
2013-09-07 23:43:56 728
原创 Webdriver_Ruby实例代码(2)
实例为点击百度首页的新闻,贴吧,音乐等,并打开相应页面require 'watir-webdriver'browser=Watir::Browser.new :chromebrowser.goto "http://www.baidu.com"#browser.text_field(:name=>'wd').set("WebDriver")#browser.button(:typ
2013-09-07 23:08:58 739
转载 Watir-webdriver_Firefox
It just works™Firefox is supported through a JavaScript driver, therefore ‘it just works™’ on all platforms.b = Watir::Browser.new :firefoxFirefox ProfilesBy default, the Firefox driver create
2013-09-07 00:19:02 1157
转载 Webdriver_Web Elements
All HTML elements are supported by Watir-WebDriver. Some examples are below:Text Fieldsrequire 'watir-webdriver'b = Watir::Browser.start 'bit.ly/watir-webdriver-demo't = b.text_field :id =
2013-09-07 00:03:35 873
转载 Watir-webdriver_ruby元素操作与定位
元素定位browser.element(how,what)常用元素*button*checkbox*text_field*form*frame*div*image*link*radio*select*table*text_area*file_field元素的操作:*click*set*clear*sel
2013-09-06 23:11:17 2431
转载 Webdriver_Ruby实例代码(1)
require 'watir-webdriver'b = Watir::Browser.newb.goto 'bit.ly/watir-webdriver-demo'b.text_field(:id => 'entry_0').set 'your name'b.select_list(:id => 'entry_1').select 'Ruby'b.select_list(:i
2013-09-06 17:56:30 957
转载 Eclipse中Ruby环境搭建(1)
下载Eclipse及插件:RDT(Ruby Development Tool)下载地址:http://jaist.dl.sourceforge.net/sourceforge/rubyeclipse/org.rubypeople.rdt-0.7.0.601192300PRD.zip。目录结构如下:将下载的RDT文件解压到C:\eclipse对应的features、plugins目录
2013-09-06 13:38:18 945
转载 Webdriver_RubyGems 镜像 - 淘宝网
1.安装ruby gems$ gem sources --remove https://rubygems.org/$ gem sources -a http://ruby.taobao.org/$ gem sources -l*** CURRENT SOURCES ***http://ruby.taobao.org# 请确保只有 ruby.taobao.org$ gem
2013-09-06 09:31:54 985
原创 Selenium_Java实例代码(3)
package cn.selenium2.test;import static org.junit.Assert.*;import java.util.List;import org.openqa.selenium.By;import org.openqa.selenium.JavascriptExecutor;import org.openqa.selenium.WebD
2013-09-05 15:37:11 1659
原创 Selenium_Java实例代码(2)
package cn.selenium2.test;import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.openqa.selenium.WebElement;import org.openqa.selenium.firefox.FirefoxDriver;public
2013-09-05 15:05:07 1046
转载 Selenium 2入门
简介Selenium 是用于测试 Web 应用程序用户界面 (UI) 的常用框架。它是一款用于运行端到端功能测试的超强工具。您可以使用多个编程语言编写测试,并且 Selenium 能够在一个或多个浏览器中执行这些测试。Selenium(以下简称为 Selenium 1)并不是能够在浏览器中自动化功能测试的惟一工具。由 Simon Stewart(来自 Google)创建的 WebDrive
2013-09-04 14:28:42 1545
原创 Selenium_Java实例代码(1)
import static org.junit.Assert.*;import java.util.*;import org.junit.*;import org.openqa.selenium.*;import org.openqa.selenium.chrome.ChromeDriver;import org.openqa.selenium.ie.InternetExplo
2013-09-03 18:32:35 1507
转载 selenium+testng+reprotng+ant框架搭建配置
一、Configure1. 安装testNG插件到eclipse.-) 选择菜单 Help /Software updates / Find and Install.-) 点击add button然后在location中输入http://beust.com/eclipse/-) 确定后会自动安装testNG插件。2. 在使用ant时候先将jdk的tools.jar引入进来。(不
2013-09-02 14:38:25 1190
pandas教程英语版
2020-09-25
MonkeyRunner需要的jar包
2015-11-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人