This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def action | |
it "Case1_This is the test case 1" do | |
$driver.get "http://cn.bing.com/" | |
$wait.until{ BingHome::LinksByName.new("Images").should_exist rescue false} | |
BingHome::SearchKeyInputBox.new().should_exist | |
BingHome::SearchButton.new().should_exist | |
end | |
it "Case2_This is the test case 2" do | |
BingHome::SearchKeyInputBox.new().should_exist | |
BingHome::SearchButton.new().should_exist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'http://rubygems.org' | |
#gem 'activerecord' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'rspec' | |
gem 'selenium-webdriver' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'yaml' | |
require 'rspec' | |
require 'rspec/expectations' | |
require 'selenium-webdriver' | |
# ruby main.rb "Camps AUI BVT 1" "firefox" "INT" "9527" | |
# handle the arguments. | |
$plan_name=ARGV.shift.dup | |
$round_id= ARGV.shift.dup |
NewerOlder