Hop.TestCase Class
TestCase Class
This is the underlying class which is used in defineTestCase
To construct a new test case use defineTestCase instead The name of the case must alway be the name of a method, but may be followed by a description
Constructor
Hop.TestCase
(
-
name -
onTest
Parameters:
-
nameStringThe name of the test case, this must always start with the name of a defined method, but may also include a description seperated by a ':'
-
onTestFunctionThe function defining the test case
Example:
Hop.defineTestCase("Object.Method",function()...);
Hop.defineTestCase("Object.Method: Do a specific test",function()...);
Item Index
Methods
- fileFromURL static
Methods
fileFromURL
(
static
-
url
Create a special object to instruct Hop to use a file provide by a URL as a test input value
Parameters:
-
urlStringurl to fetch file from (this should be a url on the local server)
