Skip to content

Commit

Permalink
Remove temporary logging
Browse files Browse the repository at this point in the history
  • Loading branch information
wcgunter committed Oct 25, 2023
1 parent 46b9560 commit e258cc3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 20 deletions.
2 changes: 1 addition & 1 deletion cws-test/src/test/java/jpl/cws/test/WebTestUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ protected boolean findOnPage(String text) {
if (!found) {
log.info("TEMP: " + driver.getPageSource());
log.error("text '" + text + "' NOT FOUND on page");
Assert.fail("text '" + text + "' NOT FOUND on page" + "\n\nTEMP: " + driver.getPageSource());
Assert.fail("text '" + text + "' NOT FOUND on page");
}
log.info("text '" + text + "' found on page -- [OK]");
return found;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,9 @@ public void runHistoryPageTest() {
log.info("------ START HistoryTestIT:runResultsTest ------");
gotoLoginPage();
login();
log.info("------ TEMP: A ------");
goToPage("deployments");
log.info("------ TEMP: B ------");
startProcDef("test_history_page", "Test History Page", 90000);
log.info("------ TEMP: C ------");
runResultsTest();
log.info("------ TEMP: D ------");
if(Integer.toString(testCasesCompleted).equals("1")) {
scriptPass = true;
} else {
Expand Down Expand Up @@ -82,8 +78,6 @@ public void runResultsTest() throws IOException {

findOnPage("CWS - History");

// this no longer makes sense
log.info("TEMP: No Show all exists");
WebElement hideLineCheckbox = findElByXPath("//input[@id='showall']");
waitForElement(hideLineCheckbox);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package jpl.cws.test.integration.ui;

import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import java.io.IOException;
import java.time.Duration;
Expand Down Expand Up @@ -121,10 +120,8 @@ public void runStartInitiatorTest() throws IOException {
"\n" +
"";

log.info("TEMP: " + initiatorXML);

initiatorXML = initiatorXML.replace("\n", "\\n").replace("\"", "\\\"");
log.info("TEMP: post: " + initiatorXML);

js.executeScript("ace.edit('editorDiv').setValue(\"" + initiatorXML + "\");");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,11 @@ public void runWorkersPageTest() {
log.info("------ START WorkersTestIT:runWorkersPageTest ------");
gotoLoginPage();
login();
log.info("------ TEMP: 1 ------");
goToPage("deployments");
log.info("------ TEMP: 2 ------");
startProcDef("test_workers_page", "Test Workers Page", 30000);
log.info("------ TETMP: 3 ------");
runNumberActiveTest();
log.info("------ TETMP: 4 ------");
runThreadLimitTest();
log.info("------ TETMP: 5 ------");
runWorkersCheckBoxTest();
log.info("------ TETMP: 6 ------");
runWorkersStatusTest();

if (Integer.toString(testCasesCompleted).equals(expectedTestsCompleted)) {
Expand Down Expand Up @@ -240,7 +234,7 @@ 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('');");
//ToDO: upgrade to java 15 and get rid of this mess with multiline string litteral
//ToDO: upgrade to java 15 and get rid of this mess with multiline string literal
String xmltestString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
"<beans \n" +
" xmlns=\"http://www.springframework.org/schema/beans\"\n" +
Expand All @@ -265,10 +259,7 @@ public void runThreadLimitTest() throws IOException {
"\n" +
"";

log.info("TEMP: " + xmltestString);

xmltestString = xmltestString.replace("\n", "\\n").replace("\"", "\\\"");
log.info("TEMP: post: " + xmltestString);
js.executeScript("ace.edit('editorDiv').setValue(\"" + xmltestString + "\");");

waitForElementID("saveXmlBtn");
Expand Down

0 comments on commit e258cc3

Please sign in to comment.