Index: TestHarness4LAMS2/src/org/lamsfoundation/testharness/MockUser.java =================================================================== RCS file: /usr/local/cvsroot/TestHarness4LAMS2/src/org/lamsfoundation/testharness/MockUser.java,v diff -u -r1.7.2.2 -r1.7.2.3 --- TestHarness4LAMS2/src/org/lamsfoundation/testharness/MockUser.java 5 May 2016 08:08:26 -0000 1.7.2.2 +++ TestHarness4LAMS2/src/org/lamsfoundation/testharness/MockUser.java 27 Jun 2016 10:51:30 -0000 1.7.2.3 @@ -24,12 +24,9 @@ import java.io.File; import java.io.IOException; -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; import java.util.HashMap; import java.util.Map; -import org.apache.commons.codec.binary.Hex; import org.apache.log4j.Logger; import org.xml.sax.SAXException; @@ -49,10 +46,10 @@ " is in a daze ", " will have a cup of coffee for ", " is away for toilet " }; private static final String LOGIN_PAGE_FLAG = "j_security_check"; - private static final String INDEX_PAGE_FLAG = "images/loading.gif"; + private static final String INDEX_PAGE_FLAG = "Index page flag"; private static final String USERNAME = "j_username"; - private static final String PASSWORD = "j_password";; + private static final String PASSWORD = "j_password"; protected AbstractTest test; protected String userId; @@ -69,11 +66,6 @@ this.userId = userId; } - private static String sha1(String plaintext) throws NoSuchAlgorithmException { - MessageDigest md = MessageDigest.getInstance("SHA1"); - return new String(Hex.encodeHex(md.digest(plaintext.getBytes()))); - } - protected static boolean checkPageContains(WebResponse resp, String flag) throws IOException { return resp.getText().indexOf(flag) != -1; } Index: TestHarness4LAMS2/src/org/lamsfoundation/testharness/author/MockAuthor.java =================================================================== RCS file: /usr/local/cvsroot/TestHarness4LAMS2/src/org/lamsfoundation/testharness/author/MockAuthor.java,v diff -u -r1.5.2.1 -r1.5.2.2 --- TestHarness4LAMS2/src/org/lamsfoundation/testharness/author/MockAuthor.java 5 May 2016 08:08:27 -0000 1.5.2.1 +++ TestHarness4LAMS2/src/org/lamsfoundation/testharness/author/MockAuthor.java 27 Jun 2016 10:51:30 -0000 1.5.2.2 @@ -53,9 +53,9 @@ private static final String IMPORT_FORM_FLAG = "UPLOAD_FILE"; private static final String UPLOAD_FILE_PARAM = "UPLOAD_FILE"; - private static final String IMPORT_SUCCESS_FLAG = "movie"; + private static final String IMPORT_SUCCESS_FLAG = "Flashless Authoring is"; private static final String LD_START_TAG = "learningDesignID="; - private static final char LD_END_TAG = '&'; + private static final char LD_END_TAG = ' '; /** * MockAuthor Constructor Index: TestHarness4LAMS2/src/org/lamsfoundation/testharness/monitor/MockMonitor.java =================================================================== RCS file: /usr/local/cvsroot/TestHarness4LAMS2/src/org/lamsfoundation/testharness/monitor/MockMonitor.java,v diff -u -r1.10.2.1 -r1.10.2.2 --- TestHarness4LAMS2/src/org/lamsfoundation/testharness/monitor/MockMonitor.java 5 May 2016 08:08:26 -0000 1.10.2.1 +++ TestHarness4LAMS2/src/org/lamsfoundation/testharness/monitor/MockMonitor.java 27 Jun 2016 10:51:30 -0000 1.10.2.2 @@ -102,11 +102,11 @@ throw new TestHarnessException( "User id is missing. If you have set UserCreated (admin properties) to true, then you must set UserId in the monitor properties."); } - MockMonitor.log.debug("initLessonURL " + initLessonURL + " ldId " + ldId + " orgId " + organisationID - + " userId " + userId + " name " + name); + String url = initLessonURL.replace(MockMonitor.LDID_PATTERN, ldId) .replace(MockMonitor.ORGANISATION_ID_PATTERN, organisationID) .replace(MockMonitor.USER_ID_PATTERN, userId).replace(MockMonitor.LESSON_NAME_PATTERN, name); + MockMonitor.log.debug("initLessonURL: " + url); WebResponse resp = (WebResponse) new Call(wc, test, username + " inits lesson", url).execute(); String idAsString = resp.getText().trim(); Index: lams_central/web/index.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/index.jsp,v diff -u -r1.31.2.2 -r1.31.2.3 --- lams_central/web/index.jsp 6 Mar 2016 22:34:12 -0000 1.31.2.2 +++ lams_central/web/index.jsp 27 Jun 2016 10:51:29 -0000 1.31.2.3 @@ -13,6 +13,7 @@
+