mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Rewrite selenium tests to python3
This commit is contained in:
parent
1772024fc7
commit
27330791f5
2 changed files with 7 additions and 7 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue