de.oio.bugkilla.player
Class JTestStep

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--de.oio.bugkilla.player.WebTestCase
                    |
                    +--de.oio.bugkilla.player.JTestStep
All Implemented Interfaces:
PlayerUser, junit.framework.Test

public class JTestStep
extends WebTestCase

use the Player via PlayerUser to get a ResponseBean for the specified Request and check if response-page has the same title like the stored response-page

NOTE:

If the JTestStep fail:
the Player(s) stopScenario()-method will be invoked!

Author:
aspall, cdedek
See Also:
PlayerUser, Player

Constructor Summary
JTestStep(java.lang.String name)
          set the name of the WebTestCase (testCase)
 
Method Summary
 HttpRequest getHttpRequest()
          get the specified HttpRequest
 HttpResponse getHttpRespone()
          get the specified HttpResponse
 void setHttpRequest(HttpRequest req)
          set the specified HttpRequest
 void setHttpResponse(HttpResponse res)
          set the specified HttpResponse
protected  void setUp()
          overwrite setUp at WebTestCase
 void testCase()
          run the TestCase
 
Methods inherited from class de.oio.bugkilla.player.WebTestCase
getMyName, getMyPlayer, setMyName, setMyPlayer, toString
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, tearDown
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JTestStep

public JTestStep(java.lang.String name)
set the name of the WebTestCase (testCase)

Parameters:
name - name of the WebTestCase (testCase)
Method Detail

setHttpRequest

public void setHttpRequest(HttpRequest req)
set the specified HttpRequest

Parameters:
req - HttpRequest

getHttpRequest

public HttpRequest getHttpRequest()
get the specified HttpRequest

Returns:
HttpRequest

setHttpResponse

public void setHttpResponse(HttpResponse res)
set the specified HttpResponse

Parameters:
res - HttpResponse

getHttpRespone

public HttpResponse getHttpRespone()
get the specified HttpResponse

Returns:
HttpResponse

setUp

protected void setUp()
overwrite setUp at WebTestCase

Overrides:
setUp in class junit.framework.TestCase

testCase

public void testCase()
run the TestCase



Copyright © Orientation in Objects GmbH. All Rights Reserved.