Index: TestHarness4LAMS2/src/org/lamsfoundation/testharness/TestSuite.java =================================================================== RCS file: /usr/local/cvsroot/TestHarness4LAMS2/src/org/lamsfoundation/testharness/TestSuite.java,v diff -u -r1.6 -r1.6.2.1 --- TestHarness4LAMS2/src/org/lamsfoundation/testharness/TestSuite.java 13 Jan 2014 13:05:41 -0000 1.6 +++ TestHarness4LAMS2/src/org/lamsfoundation/testharness/TestSuite.java 4 Dec 2014 14:59:47 -0000 1.6.2.1 @@ -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. */