Index: TestHarness4LAMS2/src/org/lamsfoundation/testharness/TestSuite.java =================================================================== diff -u -r457bede6fb8b69e25fa9a899ed66a32407bf80e9 -r063bb179a387387bbfd8ea9c0edb079313512583 --- TestHarness4LAMS2/src/org/lamsfoundation/testharness/TestSuite.java (.../TestSuite.java) (revision 457bede6fb8b69e25fa9a899ed66a32407bf80e9) +++ TestHarness4LAMS2/src/org/lamsfoundation/testharness/TestSuite.java (.../TestSuite.java) (revision 063bb179a387387bbfd8ea9c0edb079313512583) @@ -41,6 +41,8 @@ private int suiteIndex; private String targetServer; private String contextRoot; + private String cookieDomain; + private AdminTest adminTest; private AuthorTest authorTest; private MonitorTest monitorTest; @@ -53,6 +55,11 @@ this.suiteIndex = suiteIndex; this.targetServer = targetServer == null ? "localhost" : targetServer; this.contextRoot = (contextRoot == null) || contextRoot.equals("/") ? "" : contextRoot; + + int beginIndex = this.targetServer.lastIndexOf("/") + 1; + int endIndex = this.targetServer.lastIndexOf(":"); + this.cookieDomain = endIndex < 0 ? this.targetServer.substring(beginIndex) : this.targetServer.substring( + beginIndex, endIndex); this.adminTest = adminTest; adminTest.setTestSuite(this); @@ -82,6 +89,10 @@ return contextRoot; } + public String getCookieDomain() { + return cookieDomain; + } + /** * @return Returns the learnerTest. */