forked from jweden/httpClient
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate groovy. Now create events and have support for concurrently…
… creating events.
- Loading branch information
jweden
committed
Feb 24, 2012
1 parent
f18bb9e
commit 2ea37b1
Showing
9 changed files
with
147 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
ctct/src/main/groovy/weden/jason/qa/ctct/TestcaseGrabber.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package weden.jason.qa.ctct; | ||
|
||
/** | ||
* This is the groovy class which puts the test cases in the external testCases.properties | ||
* file into a data structure for the java program to use. | ||
*/ | ||
public class TestcaseGrabber { | ||
protected List<Map<String, String>> getTestcases() { | ||
def testConfig = null; | ||
try { | ||
testConfig = new ConfigSlurper().parse(new File('src/main/resources/testCases.properties').toURL()) | ||
} catch (Exception ex) { | ||
println('Error reading in test case property file' + ex.printStackTrace()); | ||
} | ||
return testConfig.testCases | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
testCases = [ | ||
['testDescription': 'Initial Test', | ||
'xmlToUse' : '''<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom"> | ||
<atom:content> | ||
<Event> | ||
<Name>2011 ''' + java.util.UUID.randomUUID().toString() + ''' Run For Dimes 5K</Name> | ||
<Title>2011 Run For Dimes 5K</Title> | ||
<EventType>OUTDOORS_RECREATION</EventType> | ||
<StartDate>2012-08-14T09:00:00-04:00</StartDate> | ||
<EndDate>2012-09-14T18:00:00-04:00</EndDate> | ||
<TimeZone> | ||
<ID>US/Eastern</ID> | ||
</TimeZone> | ||
<EventContact> | ||
<Name>John Smith</Name> | ||
</EventContact> | ||
<EventLocation> | ||
<Location>Myer Arena</Location> | ||
</EventLocation> | ||
</Event> | ||
</atom:content> | ||
</atom:entry>'''] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters