[[FrontPage]] > [[SoftwareTest]]

ƥȼ¹ԴĶSeleniumˤWebƥȤˤĤơޤȤƤޤ

#contents

*Selenium IDE [#k40442a3]

FirefoxΥץ饰ȤưޤWebʤ顢ưϿƥȤʤƤȤǽࡢ

ĤĴ٤ƤߤơºݤˤäƤߤȤΥ⡣1.0.6ưǧƤޤ

**Ƴ [#u11ac9c8]

-SeleniumeIDEFirefox˥ץ饰ȤƳ
++[[Seleniume HQ:http://seleniumhq.org/]]˹Ԥ
++Downloadڡ˹ԤäơSelenium IDEDownload򡣵ĥܥ򲡤ȡFirefoxΥץ饰󡦥󥹥ȡ뤬ȡ
++FirefoxƵươ֥ġץ˥塼SeleniumeIDEɲäƤOK

**ϤƤΥƥ [#uadfd37e]

+Firefoxǡ֥ġ-SeleniumeIDEפ
+֥ޥɡסоݡס͡פꡣƥȥƥåפο֤򻲾ȡ
+ġСˤָߤΥƥȥ¹ԡץܥ򥯥å

ƥȥץ
#ref(selenium_testcase.html)

|ޥ(command)|о(target)|(value)|ư|
|open|http://www.catch.jp/blog2a/||URL򳫤|
|assertLocation|http://www.catch.jp/blog2a/||URLǧ|
|assertTitle|Placebo Effect||TitleפƤ뤫ǧ|

**¸ɹ [#mb5d96a0]

ΤϡŪʥץꥱƱ

-ƥȥ¸֥ե-֥ƥȥ̾դ¸
-ƥȥɹ֥ե-֥ƥȥ򳫤

**ʵǽ [#q173a6e2]

ƥȥΥޥɥꥹȤ򱦥å

-ϰ֤λ/
-֥졼ݥȤλ/
-Ȥ

-ưḁ̇̄ץ⻣()

**ʣΥƥȥޤȤ [#d893e2ad]

ʣΥƥȥ¹Ԥϡ֥ƥȥȡפˤޤȤ롣

ƥȥȤϡ֥ơ֥ס֥ץ֤κ¦ɽ롣

#ref(selenium1.png)

*Selenium ޥ [#d329e16d]

ޤǡǿͤλ䤬ɤȤޥɤǤ

**ɤȤޥ -  [#gdb1583d]

|ޥ(command)|о(target)|(value)|ư|
|open|http://127.0.0.1/index.html||URL򳫤|
|clickAndWait|http://127.0.0.1/index.html||󥯤򳫤|

**ɤȤޥ - ǧ [#u99e93c1]

|ޥ(command)|о(target)|(value)|ư|
|assertLocation|http://127.0.0.1/index.html||URLǧ|
|assertTitle|hello world||TitleפƤ뤫ǧ|
|assertTextPresent|hello world||ɽƤƥȤפƤ뤫ǧ|
|assertHtmlSource|glob:*<p*>hello world</p>*||ɽƤHTMLפƤ뤫ǧ|
|assertElementPresent|link=󥯥ƥ||ɽƤ󥯤פƤ뤫ǧ|
|assertElementPresent|link=󥯥ƥ||ɽƤ󥯥ƥȤפƤ뤫ǧ(URLǤϤʤ)|

ǧޥɤϡassert***бverify***⤢롣assertϤϡ顼ߡverfyϤϡ顼ǤƥȤ³ȤСڡܤassertTitledzǧͤverifyϤdzǧ롣

**ɤȤޥ - Τۤ [#n9e2efca]

|ޥ(command)|о(target)|(value)|ư|
|captureEntirePageScreenshot|(¸ȥե̾)||ߤβ̤򥭥ץ㤹(Ȥǻ)|

**ɽˤĤ [#w57dad9e]

(Ȥǽ)

**Ƽե [#o228f51f]

-[[seleniumʥޥɰ - ˸ȥƥ೫ȯ˴ؤ:http://d.hatena.ne.jp/language_and_engineering/20081016/1224123118]]
-[[Selenium 0.7Ѽԡˡ1/3ˡCodeZine:http://codezine.jp/article/detail/436?p=1]]
-[[Selenium Υޥ  Selenium ܸɥ:http://oss.infoscience.co.jp/seleniumhq/docs/04_selenese_commands.html]]
-[[Selenium ܸɥ:http://oss.infoscience.co.jp/seleniumhq/docs/index.html]]

*Selenium RC [#c4cedc7f]

⡼ȥȥ(Remote Control:RC)ǤSeleniumޥɥ饤󤫤鼫ư¹ԤȤȤ˻Ȥ餷[[֥饦ФWebƥȤưSelenium (3/3) - Selenium RCǼưƥȤ¹ԤˤϡIT:http://www.atmarkit.co.jp/fjava/rensai4/devtool07/devtool07_3.html#04]]ûơͤˤʤޤ

**Ƴ [#ef1a5062]

С1.0.3ǻƤߤޤ20MB餤ޤ

+[[Downloads:http://seleniumhq.org/download/]]
+ɤzipեह
+ह̤ΥեեФƤΤǡselenium-remote-control-1.0.3פȤե
+䤹褦C:\ľ˥եݤȥԡ(ʲRCե)

ȡ[[JRE(Java Runtime Environment):http://www.java.com/ja/]]ɬס

**ϤƤΥ⡼ȥƥ [#w18cd47a]

+ޥɥץץȤΩ夲
+˥ԡRCե˰ư

 cd C:\selenium-remote-control-1.0.3\selenium-server-1.0.3

ƥȥȤȥƥȥѰդƤϡc:\selenium\ץե¸

ƥȥȥץ
#ref(selenium_testsuite.html)

ƥȥץ
#ref(selenium_testcase.html)

ǡޥɥ饤󤫤顢Υޥɤ¹(ºݤϡҤ³)ƥȥեǤϤʤƥȥȥեꤹ뤳ȡ

 java -jar selenium-server.jar
  -htmlSuite
  "*firefox"<- ¹Ԥ֥饦
  "http://www.catch.jp/blob2a/" <- ƥоݤURL
  "c:\selenium\selenium_testsuite.html" <- ƥȥȥե
  "c:\selenium\result.html" <- ¹Է̥ե

ȡ¹Ծʤդɽ롣Ʊˡ֥饦ܥƥƤư¹ԡ

#ref(selenium_log.png)

¹Է̤htmlեȤ¸롣

¹Է̥ץ
#ref(result.html)

*ͻ [#wd0e64bd]

-[[֥饦ФWebƥȤưSelenium (1/3) - IT:http://www.atmarkit.co.jp/fjava/rensai4/devtool07/devtool07_1.html]]
-[[[ThinkIT] 1Web֥饦ȤäƥȥġSeleniumȤ:http://www.thinkit.co.jp/free/article/0705/2/1/]]
-[[Part4 ƥȤưܤΥġSelenium - Webץߥ󥰼ϥåסITpro:http://itpro.nikkeibp.co.jp/article/COLUMN/20071011/284284/?ST=develop&P=1]]
-[[ڥϥġۤϤ! WebƷɬ Selenium - ͵޾徺漫ưƥȥġ (1) Ƕ͵Selenium | 󥿡ץ饤 | ޥߥ㡼ʥ:http://journal.mycom.co.jp/articles/2006/09/29/selenium/index.html]]
-[[Japanese - Selenium - OpenQA Wiki:http://wiki.openqa.org/display/SEL/Japanese]]
-[[Selenium web application testing system:http://seleniumhq.org/]] 

-[[Selenium RC - nigredo arcanum.jpνĥꡡ:http://d.hatena.ne.jp/nigredo/20091104/1257341341]]

-[[Amazon.co.jp_Webץꥱƥȼˡ:http://www.amazon.co.jp/gp/product/4839924309?ie=UTF8&tag=plaseboeffect-22&linkCode=as2&camp=247&creative=7399&creativeASIN=4839924309]] ɤˤޤȤޤäƤޤ

ȥå   ʬ Хåå   ñ측 ǽ   إ   ǽRSS