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
| package com.example.specs.user; | |
| import org.concordion.integration.junit3.ConcordionTestCase; | |
| import com.example.User; | |
| import com.example.UserManagement; | |
| public class UserManagementTest extends ConcordionTestCase { | |
| public boolean registUser(String name, String age) { | |
| User testUser = new User(name, Integer.parseInt(age)); | |
| return new UserManagement().registUser(testUser); | |
| } |
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
| c:\fujihara\Ruby\redmine-0.9.0>ruby script/generate redmine_plugin version_burndown | |
| create vendor/plugins/redmine_version_burndown/app/controllers | |
| create vendor/plugins/redmine_version_burndown/app/helpers | |
| create vendor/plugins/redmine_version_burndown/app/models | |
| create vendor/plugins/redmine_version_burndown/app/views | |
| create vendor/plugins/redmine_version_burndown/db/migrate | |
| create vendor/plugins/redmine_version_burndown/lib/tasks | |
| create vendor/plugins/redmine_version_burndown/assets/images | |
| create vendor/plugins/redmine_version_burndown/assets/javascripts | |
| create vendor/plugins/redmine_version_burndown/assets/stylesheets |
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
| cd <DEVKIT_INSTALL_DIR> | |
| ruby dk.rb init |
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
| ie_driver = driver = Selenium::WebDriver.for :ie | |
| firefox_driver = Selenium::WebDriver.for :firefox | |
| chrome_driver = Selenium::WebDriver.for :chrome |
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
| <script type="text/javascript"> | |
| window.jsErrors = []; | |
| window.onerror = function(errorMessage) { | |
| window.jsErrors[window.jsErrors.length] = errorMessage; | |
| } | |
| </script> |
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
| @driver.find_element(:xpath, "/html/body/div/a").text |
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
| @driver.manage.timeouts.implicit_wait = 10 |
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
| chrome_driver = Selenium::WebDriver.for :chrome, :switches => %w[--proxy-server=ProxyServer:Port] |
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
| # 新しいウィンドウを開くリンク | |
| @driver.find_element(:xpath, "/html/body/div/a").click | |
| # ウィンドウ切り替え | |
| @driver.window_handles.each do |handle| | |
| @driver.switch_to.window handle | |
| end | |
| # ここで新しいウィンドウの操作をごにょごにょ |
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
| <script type="text/javascript" src="http://www.google.com/jsapi"></script> | |
| <script type="text/javascript">google.load("jquery", "1.5");</script> |