Rewrite selenium tests to python3

This commit is contained in:
Philipp Dallig 2020-12-02 12:59:42 +01:00
parent 1772024fc7
commit 27330791f5
2 changed files with 7 additions and 7 deletions

View file

@ -206,7 +206,7 @@ public class InterpreterModeActionsIT extends AbstractZeppelinIT {
waitForParagraph(1, "READY");
interpreterModeActionsIT.setPythonParagraph(1, "user=\"user1\"");
waitForParagraph(2, "READY");
interpreterModeActionsIT.setPythonParagraph(2, "print user");
interpreterModeActionsIT.setPythonParagraph(2, "print(user)");
collector.checkThat("The output field paragraph contains",
driver.findElement(By.xpath(
getParagraphXPath(2) + "//div[contains(@class, 'text plainTextContent')]")).getText(),
@ -237,7 +237,7 @@ public class InterpreterModeActionsIT extends AbstractZeppelinIT {
waitForParagraph(1, "READY");
interpreterModeActionsIT.setPythonParagraph(1, "user=\"user2\"");
waitForParagraph(2, "READY");
interpreterModeActionsIT.setPythonParagraph(2, "print user");
interpreterModeActionsIT.setPythonParagraph(2, "print(user)");
collector.checkThat("The output field paragraph contains",
driver.findElement(By.xpath(
getParagraphXPath(2) + "//div[contains(@class, 'text plainTextContent')]")).getText(),
@ -363,7 +363,7 @@ public class InterpreterModeActionsIT extends AbstractZeppelinIT {
waitForParagraph(1, "READY");
interpreterModeActionsIT.setPythonParagraph(1, "user=\"user1\"");
waitForParagraph(2, "READY");
interpreterModeActionsIT.setPythonParagraph(2, "print user");
interpreterModeActionsIT.setPythonParagraph(2, "print(user)");
collector.checkThat("The output field paragraph contains",
driver.findElement(By.xpath(
@ -396,7 +396,7 @@ public class InterpreterModeActionsIT extends AbstractZeppelinIT {
waitForParagraph(1, "READY");
interpreterModeActionsIT.setPythonParagraph(1, "user=\"user2\"");
waitForParagraph(2, "READY");
interpreterModeActionsIT.setPythonParagraph(2, "print user");
interpreterModeActionsIT.setPythonParagraph(2, "print(user)");
collector.checkThat("The output field paragraph contains",
driver.findElement(By.xpath(
getParagraphXPath(2) + "//div[contains(@class, 'text plainTextContent')]")).getText(),
@ -639,7 +639,7 @@ public class InterpreterModeActionsIT extends AbstractZeppelinIT {
waitForParagraph(1, "READY");
interpreterModeActionsIT.setPythonParagraph(1, "user=\"user1\"");
waitForParagraph(2, "READY");
interpreterModeActionsIT.setPythonParagraph(2, "print user");
interpreterModeActionsIT.setPythonParagraph(2, "print(user)");
collector.checkThat("The output field paragraph contains",
driver.findElement(By.xpath(
@ -672,7 +672,7 @@ public class InterpreterModeActionsIT extends AbstractZeppelinIT {
waitForParagraph(1, "READY");
interpreterModeActionsIT.setPythonParagraph(1, "user=\"user2\"");
waitForParagraph(2, "READY");
interpreterModeActionsIT.setPythonParagraph(2, "print user");
interpreterModeActionsIT.setPythonParagraph(2, "print(user)");
collector.checkThat("The output field paragraph contains",
driver.findElement(By.xpath(

View file

@ -110,7 +110,7 @@ public class SparkParagraphIT extends AbstractZeppelinIT {
try {
setTextOfParagraph(1, "%pyspark\\n" +
"for x in range(0, 3):\\n" +
" print \"test loop %d\" % (x)");
" print(\"test loop %d\" % (x))");
runParagraph(1);