AcceptanceTester extends Actor Uses AcceptanceTesterActions
Inherited Methods
Tags
Table of Contents
| getScenario() | mixed | |
|---|---|---|
| loginAsAdmin() | mixed | |
| logoutAsAdmin() | mixed | |
| goToAdminPage() | mixed | |
| loginAsMember() | mixed | |
| logoutAsMember() | mixed | |
| setStock() | mixed | |
| buyThis() | mixed | |
| makeEmptyCart() | mixed | |
| getLastDownloadFile() | string | |
| switchToNewWindow() | _blankで開いたウィンドウに切り替え | mixed |
| dontSeeElements() | dontSeeElementが遅いのでJSで存在チェックを行う。 | mixed |
| dragAndDropBy() | mixed | |
| wantToTest() | void | |
| wantTo() | void | |
| execute() | void | |
| expectTo() | void | |
| expect() | void | |
| amGoingTo() | void | |
| am() | void | |
| lookForwardTo() | void | |
| comment() | void | |
| haveFriend() | Friend |
Methods
getScenario()
public
getScenario(
)
: mixed
Return values
mixedloginAsAdmin()
public
loginAsAdmin(
[ $user :
mixed
= '' ]
[, $password :
mixed
= '' ]
[, $dir :
mixed
= '' ]
)
: mixed
Parameters
- $user : mixed = ''
- $password : mixed = ''
- $dir : mixed = ''
Return values
mixedlogoutAsAdmin()
public
logoutAsAdmin(
)
: mixed
Return values
mixedgoToAdminPage()
public
goToAdminPage(
[ $dir :
mixed
= '' ]
)
: mixed
Parameters
- $dir : mixed = ''
Return values
mixedloginAsMember()
public
loginAsMember(
[ $email :
mixed
= '' ]
[, $password :
mixed
= '' ]
)
: mixed
Parameters
- $email : mixed = ''
- $password : mixed = ''
Return values
mixedlogoutAsMember()
public
logoutAsMember(
)
: mixed
Return values
mixedsetStock()
public
setStock(
$pid :
mixed
, $stock :
mixed
)
: mixed
Parameters
- $pid : mixed
- $stock : mixed
Return values
mixedbuyThis()
public
buyThis(
[ $num :
mixed
= 1 ]
)
: mixed
Parameters
- $num : mixed = 1
Return values
mixedmakeEmptyCart()
public
makeEmptyCart(
)
: mixed
Return values
mixedgetLastDownloadFile()
public
getLastDownloadFile(
$fileNameRegex :
mixed
[, $retryCount :
mixed
= 3 ]
)
: string
Parameters
- $fileNameRegex : mixed
- $retryCount : mixed = 3
Tags
Return values
string —ファイルパス
switchToNewWindow()
_blankで開いたウィンドウに切り替え
public
switchToNewWindow(
)
: mixed
Return values
mixeddontSeeElements()
dontSeeElementが遅いのでJSで存在チェックを行う。
public
dontSeeElements(
$arrayOfSelector :
mixed
)
: mixed
Parameters
- $arrayOfSelector : mixed
Return values
mixeddragAndDropBy()
public
dragAndDropBy(
$selector :
mixed
, $x_offset :
mixed
, $y_offset :
mixed
)
: mixed
Parameters
- $selector : mixed
- $x_offset : mixed
- $y_offset : mixed
Return values
mixedwantToTest()
public
wantToTest(
$text :
mixed
)
: void
Parameters
- $text : mixed
wantTo()
public
wantTo(
$text :
mixed
)
: void
Parameters
- $text : mixed
execute()
public
execute(
$callable :
mixed
)
: void
Parameters
- $callable : mixed
expectTo()
public
expectTo(
$prediction :
mixed
)
: void
Parameters
- $prediction : mixed
expect()
public
expect(
$prediction :
mixed
)
: void
Parameters
- $prediction : mixed
amGoingTo()
public
amGoingTo(
$argumentation :
mixed
)
: void
Parameters
- $argumentation : mixed
am()
public
am(
$role :
mixed
)
: void
Parameters
- $role : mixed
lookForwardTo()
public
lookForwardTo(
$achieveValue :
mixed
)
: void
Parameters
- $achieveValue : mixed
comment()
public
comment(
$description :
mixed
)
: void
Parameters
- $description : mixed
haveFriend()
public
haveFriend(
$name :
mixed
, $actorClass :
mixed
)
: Friend
Parameters
- $name : mixed
- $actorClass : mixed