Skip to content

Commit

Permalink
just for troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
brentjk committed Sep 27, 2023
1 parent 34dcba2 commit 5423c06
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 23 deletions.
1 change: 1 addition & 0 deletions cws-test/src/test/java/jpl/cws/test/WebTestUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ protected boolean findOnPage(String text) {
}

if (!found) {
log.error("TEMP: " + driver.getPageSource());
log.error("text '" + text + "' NOT FOUND on page");
Assert.fail("text '" + text + "' NOT FOUND on page");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void runStartInitiatorTest() throws IOException {
"</beans>",
"",
"");

log.info("TEMP: " + initiatorXML);
aceEditor.sendKeys(initiatorXML.replace(" ", ""));

waitForElementID("saveXmlBtn");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,29 +237,54 @@ public void runThreadLimitTest() throws IOException {
WebElement aceEditor = driver.findElement(By.cssSelector("textarea.ace_text-input"));
js.executeScript("ace.edit('editorDiv').navigateFileEnd();");
js.executeScript("ace.edit('editorDiv').setValue('');");
aceEditor.sendKeys("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
"<beans \n" +
" xmlns=\"http://www.springframework.org/schema/beans\"\n" +
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
" xsi:schemaLocation=\"\n" +
" http://www.springframework.org/schema/beans\n" +
" http://www.springframework.org/schema/beans/spring-beans.xsd\"> \n" +
"\n" +
"<bean id=\"repeat_2\" class=\"jpl.cws.process.initiation.RepeatingDelayInitiator\"> \n" +
" <property name=\"procDefKey\" value=\"test_thread_limit\" />\n" +
" <property name=\"delayBetweenProcesses\" value=\"0\" />\n" +
String xmlString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
"<beans \n" +
" xmlns=\"http://www.springframework.org/schema/beans\"\n" +
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
" xsi:schemaLocation=\"\n" +
" http://www.springframework.org/schema/beans\n" +
" http://www.springframework.org/schema/beans/spring-beans.xsd\"> \n" +
"\n" +
"<bean id=\"repeat_2\" class=\"jpl.cws.process.initiation.RepeatingDelayInitiator\"> \n" +
" <property name=\"procDefKey\" value=\"test_thread_limit\" />\n" +
" <property name=\"delayBetweenProcesses\" value=\"0\" />\n" +
" <property name=\"maxRepeats\" value=\"6\" />\n" +
" <property name=\"procVariables\">\n" +
" <map>\n" +
" <entry key=\"variable1\" value=\"foo\"></entry>\n" +
" <entry key=\"variable2\" value=\"bar\"></entry>\n" +
" </map>\n" +
" </property>\n" +
" </bean>\n" +
"</beans>\n" +
"\n" +
"\n" +
"");
" <property name=\"procVariables\">\n" +
" <map>\n" +
" <entry key=\"variable1\" value=\"foo\"></entry>\n" +
" <entry key=\"variable2\" value=\"bar\"></entry>\n" +
" </map>\n" +
" </property>\n" +
" </bean>\n" +
"</beans>\n" +
"\n" +
"\n" +
"";
log.info("TEMP: " + xmlString);
js.executeScript("ace.edit('editorDiv').setValue(xmlString);");
// aceEditor.sendKeys("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
// "<beans \n" +
// " xmlns=\"http://www.springframework.org/schema/beans\"\n" +
// " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
// " xsi:schemaLocation=\"\n" +
// " http://www.springframework.org/schema/beans\n" +
// " http://www.springframework.org/schema/beans/spring-beans.xsd\"> \n" +
// "\n" +
// "<bean id=\"repeat_2\" class=\"jpl.cws.process.initiation.RepeatingDelayInitiator\"> \n" +
// " <property name=\"procDefKey\" value=\"test_thread_limit\" />\n" +
// " <property name=\"delayBetweenProcesses\" value=\"0\" />\n" +
// " <property name=\"maxRepeats\" value=\"6\" />\n" +
// " <property name=\"procVariables\">\n" +
// " <map>\n" +
// " <entry key=\"variable1\" value=\"foo\"></entry>\n" +
// " <entry key=\"variable2\" value=\"bar\"></entry>\n" +
// " </map>\n" +
// " </property>\n" +
// " </bean>\n" +
// "</beans>\n" +
// "\n" +
// "\n" +
// "");

waitForElementID("saveXmlBtn");
log.info("Clicking on 'Save XML' button.");
Expand Down

0 comments on commit 5423c06

Please sign in to comment.