Your SlideShare is downloading. ×
FizzBuzzではじめるテスト
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

FizzBuzzではじめるテスト

9,592
views

Published on

2011/07/22 第1回関西PHP勉強会

2011/07/22 第1回関西PHP勉強会


0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
9,592
On Slideshare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
9
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Transcript

    • 1. • @shin1x1 / http://iplus.im/shin1x1• ו Shin x blog http://www.1x1.jp/blog/• PHP / Goolge+ / / MotoGP
    • 2. ••
    • 3. 1. FizzBuzz2.3.4. Selenium IDE5. SimpleTest6.
    • 4. • 1 100• 3 Fizz 5 Buzz 3 5 FizzBuzz
    • 5. <?phpclass FizzbuzzController extends AppController { public $uses = array(); public function index() { for ($i = 1 ; $i <= 100 ; $i++) { if ($i % 3 === 0 && $i % 5 === 0) { echo FizzBuzz<br />; } else if ($i % 3 === 0) { echo Fizz<br />; } else if ($i % 5 === 0) { echo Buzz<br />; } else { echo $i.<br />; } } exit; }}
    • 6. • Selenium IDE• SimpleTest 1.0.1• CakePHP 1.3.10• https://github.com/shin1x1/CakePHP-FizzBuzz
    • 7. • Web• Firefox••
    • 8. • ATND• / /• Twitter tweet
    • 9. • PHP• PHPUnit• CakePHP• CakePHP PHPUnit
    • 10. • SimpleTest•
    • 11. ••• ok ng
    • 12. $ret = Calc::double(3);• Calc::double()•
    • 13. $ret = Calc::double(3);$this->assertIdentical(6, $ret);• Calc::double(3) 6• 6 === $ret• ok ng
    • 14. assertIdentical($a, $b); $a === $b assertEqual($a, $b); $a == $b assertTrue($b); (boolean)$b assertFalse($b); !(boolean)$b assertNull($b); !isset($b)
    • 15. assertBodyTextassertTextPresent assertValue value assertLocation URL assertCookie Cookie
    • 16. assertAlert assertAlertNotPresent assertAlertPresent assertAllButtons assertAllFields assertAllLinks assertAllWindowIdsassertAllWindowNames assertAllWindowTitles assertAttribute assertAttributeFromAllWindows assertBodyTextassertChecked assertConfirmation assertConfirmationNotPresent assertConfirmationPresent assertCookieassertCookieByName assertCookieNotPresent assertCookiePresent assertCursorPosition assertEditableassertElementHeight assertElementIndex assertElementNotPresent assertElementPositionLeft assertElementPositionTopassertElementPresent assertElementWidth assertEval assertExpression assertHtmlSource assertLocationassertMouseSpeed assertNotAlert assertNotAllButtons assertNotAllFields assertNotAllLinks assertNotAllWindowIdsassertNotAllWindowNames assertNotAllWindowTitles assertNotAttribute assertNotAttributeFromAllWindowsassertNotBodyText assertNotChecked assertNotConfirmation assertNotCookie assertNotCookieByNameassertNotCursorPosition assertNotEditable assertNotElementHeight assertNotElementIndexassertNotElementPositionLeft assertNotElementPositionTop assertNotElementWidth assertNotEval assertNotExpressionassertNotHtmlSource assertNotLocation assertNotMouseSpeed assertNotOrdered assertNotPromptassertNotSelectOptions assertNotSelected assertNotSelectedId assertNotSelectedIds assertNotSelectedIndexassertNotSelectedIndexes assertNotSelectedLabel assertNotSelectedLabels assertNotSelectedValueassertNotSelectedValues assertNotSomethingSelected assertNotSpeed assertNotTable assertNotText assertNotTitleassertNotValue assertNotVisible assertNotWhetherThisFrameMatchFrameExpressionassertNotWhetherThisWindowMatchWindowExpression assertNotXpathCount assertOrdered assertPromptassertPromptNotPresent assertPromptPresent assertSelectOptions assertSelectedId assertSelectedIds assertSelectedIndexassertSelectedIndexes assertSelectedLabel assertSelectedLabels assertSelectedValue assertSelectedValuesassertSomethingSelected assertSpeed assertTable assertText assertTextNotPresent assertTextPresent assertTitleassertValue assertVisible assertWhetherThisFrameMatchFrameExpressionassertWhetherThisWindowMatchWindowExpression assertXpathCount
    • 17. assertAlert assertAlertNotPresent assertAlertPresent assertAllButtons assertAllFields assertAllLinks assertAllWindowIds assertAllWindowNamesassertAllWindowTitles assertAttribute assertAttributeFromAllWindows assertBodyText assertChecked assertConfirmation assertConfirmationNotPresentassertConfirmationPresent assertCookie assertCookieByName assertCookieNotPresent assertCookiePresent assertCursorPosition assertEditable assertElementHeightassertElementIndex assertElementNotPresent assertElementPositionLeft assertElementPositionTop assertElementPresent assertElementWidth assertEvalassertExpression assertHtmlSource assertLocation assertMouseSpeed assertNotAlert assertNotAllButtons assertNotAllFields assertNotAllLinks assertNotAllWindowIdsassertNotAllWindowNames assertNotAllWindowTitles assertNotAttribute assertNotAttributeFromAllWindows assertNotBodyText assertNotCheckedassertNotConfirmation assertNotCookie assertNotCookieByName assertNotCursorPosition assertNotEditable assertNotElementHeight assertNotElementIndexassertNotElementPositionLeft assertNotElementPositionTop assertNotElementWidth assertNotEval assertNotExpression assertNotHtmlSource assertNotLocationassertNotMouseSpeed assertNotOrdered assertNotPrompt assertNotSelectOptions assertNotSelected assertNotSelectedId assertNotSelectedIdsassertNotSelectedIndex assertNotSelectedIndexes assertNotSelectedLabel assertNotSelectedLabels assertNotSelectedValue assertNotSelectedValuesassertNotSomethingSelected assertNotSpeed assertNotTable assertNotText assertNotTitle assertNotValue assertNotVisibleassertNotWhetherThisFrameMatchFrameExpression assertNotWhetherThisWindowMatchWindowExpression assertNotXpathCount assertOrdered assertPromptassertPromptNotPresent assertPromptPresent assertSelectOptions assertSelectedId assertSelectedIds assertSelectedIndex assertSelectedIndexes assertSelectedLabelassertSelectedLabels assertSelectedValue assertSelectedValues assertSomethingSelected assertSpeed assertTable assertText assertTextNotPresent assertTextPresentassertTitle assertValue assertVisible assertWhetherThisFrameMatchFrameExpression assertWhetherThisWindowMatchWindowExpression assertXpathCountverifyErrorOnNext verifyNotErrorOnNext verifyFailureOnNext verifyNotFailureOnNext verifySelected verifyNotSelected verifyAlert verifyNotAlert verifyAllButtonsverifyNotAllButtons verifyAllFields verifyNotAllFields verifyAllLinks verifyNotAllLinks verifyAllWindowIds verifyNotAllWindowIds verifyAllWindowNamesverifyNotAllWindowNames verifyAllWindowTitles verifyNotAllWindowTitles verifyAttribute verifyNotAttribute verifyAttributeFromAllWindowsverifyNotAttributeFromAllWindows verifyBodyText verifyNotBodyText verifyConfirmation verifyNotConfirmation verifyCookie verifyNotCookie verifyCookieByNameverifyNotCookieByName verifyCursorPosition verifyNotCursorPosition verifyElementHeight verifyNotElementHeight verifyElementIndex verifyNotElementIndexverifyElementPositionLeft verifyNotElementPositionLeft verifyElementPositionTop verifyNotElementPositionTop verifyElementWidth verifyNotElementWidth verifyEvalverifyNotEval verifyExpression verifyNotExpression verifyHtmlSource verifyNotHtmlSource verifyLocation verifyNotLocation verifyMouseSpeed verifyNotMouseSpeedverifyPrompt verifyNotPrompt verifySelectedId verifyNotSelectedId verifySelectedIds verifyNotSelectedIds verifySelectedIndex verifyNotSelectedIndexverifySelectedIndexes verifyNotSelectedIndexes verifySelectedLabel verifyNotSelectedLabel verifySelectedLabels verifyNotSelectedLabels verifySelectedValueverifyNotSelectedValue verifySelectedValues verifyNotSelectedValues verifySelectOptions verifyNotSelectOptions verifySpeed verifyNotSpeed verifyTable verifyNotTableverifyText verifyNotText verifyTitle verifyNotTitle verifyValue verifyNotValue verifyWhetherThisFrameMatchFrameExpressionverifyNotWhetherThisFrameMatchFrameExpression verifyWhetherThisWindowMatchWindowExpression verifyNotWhetherThisWindowMatchWindowExpressionverifyXpathCount verifyNotXpathCount verifyAlertPresent verifyAlertNotPresent verifyChecked verifyNotChecked verifyConfirmationPresentverifyConfirmationNotPresent verifyCookiePresent verifyCookieNotPresent verifyEditable verifyNotEditable verifyElementPresent verifyElementNotPresentverifyOrdered verifyNotOrdered verifyPromptPresent verifyPromptNotPresent verifySomethingSelected verifyNotSomethingSelected verifyTextPresentverifyTextNotPresent verifyVisible verifyNotVisible
    • 18. • OK = GREEN• NG = RED
    • 19. 1.2.3.4.
    • 20. • SimpleTest http://www.simpletest.org/• Selenium IDE http://seleniumhq.org/projects/ide/• CakePHP http://cakephp.org/