Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/5473#discussion_r29319264
--- Diff:
streaming/src/test/scala/org/apache/spark/streaming/UISeleniumSuite.scala ---
@@ -86,6 +108,63 @@ class UISeleniumSuite
findAll(cssSelector("""#completed-batches-table
th""")).map(_.text).toSeq should be {
List("Batch Time", "Input Size", "Scheduling Delay", "Processing
Time", "Total Delay")
}
+
+ val batchLinks =
+ findAll(cssSelector("""#completed-batches-table
a""")).flatMap(_.attribute("href")).toSeq
+ batchLinks.size should be >= 1
+
+ // Check a normal batch page
+ go to (batchLinks.last) // Last should be the first batch, so it
will have some jobs
+ val summaryText = findAll(cssSelector("li
strong")).map(_.text).toSeq
+ summaryText should contain ("Batch Duration:")
+ summaryText should contain ("Input data size:")
+ summaryText should contain ("Scheduling delay:")
+ summaryText should contain ("Processing time:")
+ summaryText should contain ("Total delay:")
+
+ findAll(cssSelector("""#batch-job-table th""")).map(_.text).toSeq
should be {
+ List("Output Op Id", "Description", "Duration", "Job Id",
"Duration",
+ "Stages: Succeeded/Total", "Tasks (for all stages):
Succeeded/Total", "Error")
+ }
+
+ // Check we have 2 output op ids
+ val outputOpIds = findAll(cssSelector(".output-op-id-cell")).toSeq
+ outputOpIds.map(_.attribute("rowspan")) should be (List(Some("2"),
Some("2")))
+ outputOpIds.map(_.text) should be (List("0", "1"))
+
+ // Check job ids
+ val jobIdCells = findAll(cssSelector( """#batch-job-table
a""")).toSeq
+ jobIdCells.map(_.text) should be (List("0", "1", "2", "3"))
+
+ val jobLinks = jobIdCells.flatMap(_.attribute("href"))
+ jobLinks.size should be (4)
+
+ // Check stage progress
+ findAll(cssSelector(""".stage-progress-cell""")).map(_.text).toSeq
should be
+ (List("1/1", "1/1", "1/1", "0/1 (1 failed)"))
+
+ // Check job progress
+ findAll(cssSelector(""".progress-cell""")).map(_.text).toSeq
should be
+ (List("1/1", "1/1", "1/1", "0/1 (1 failed)"))
+
+ // Check stacktrack
--- End diff --
stacktrack --> stacktrace
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]