alltonp / flakeless Goto Github PK
View Code? Open in Web Editor NEWlight touch, flake free browser testing in scala
License: MIT License
light touch, flake free browser testing in scala
License: MIT License
Upgrading from 0.0.129 to 0.0.166 produces the following for all tests.
Thought I'd post it in case it rings any bells.
Starting ChromeDriver 2.37.544315 (730aa6a5fdba159ac9f4c1e8cbc59bf1b5ce12b7) on port 11901
Only local connections are allowed.
Jun 12, 2018 8:31:02 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
No Record for flightnumber: 1
java.lang.RuntimeException: No Record for flightnumber: 1
at im.mange.flakeless.innards.FlightDataRecorder.$anonfun$data$1(FlightDataRecorder.scala:36)
at scala.Option.getOrElse(Option.scala:121)
at im.mange.flakeless.innards.FlightDataRecorder.data(FlightDataRecorder.scala:36)
at im.mange.flakeless.innards.FlightDataRecorder.stop(FlightDataRecorder.scala:21)
at im.mange.flakeless.Flakeless.$anonfun$stopFlight$1(Flakeless.scala:16)
at scala.runtime.java8.JFunction1$mcVI$sp.apply(JFunction1$mcVI$sp.java:12)
at scala.Option.foreach(Option.scala:257)
at im.mange.flakeless.Flakeless.stopFlight(Flakeless.scala:16)
at [snip].BrowserTestSuite.testInBrowser(BrowserTestSuite.scala:19)
Where
abstract class BrowserTestSuite extends MyTestSuite {
def testInBrowser(testBody: SystemUnderTest => Unit): Unit = {
val sut = PooledServer.acquire
try {
sut.flakeless.startFlight(suite, currentTestName)
sut.reset()
testBody(sut)
} catch {
case t: Throwable =>
sut.reportFailure(t)
throw t
} finally {
sut.flakeless.stopFlight()
PooledServer.release(sut)
}
}
}
Trawling through the commits, did ClearInputAndSendKeys
get replaced with vanilla SendKeys
?
So,
ClearInputAndSendKeys(driver, path, List(value, Keys.END))
becomes
SendKeys(driver, path, clear = true, List(value, Keys.END))
?
...and any uses of SendKeys
now needs a value?
So,
SendKeys(driver, dealLogIdPath, Keys.TAB)
becomes
SendKeys(driver, dealLogIdPath, clear = false, Keys.TAB)
?
We're seeing problems with Joda time being excluded:
Exception in thread "shutdownHook3" Exception in thread "shutdownHook2" java.lang.NoClassDefFoundError: org/joda/time/DateTime
at im.mange.flakeless.innards.FlightDataRecorder.record(FlightDataRecorder.scala:31)
at im.mange.flakeless.Flakeless.$anonfun$record$1(Flakeless.scala:20)
at scala.runtime.java8.JFunction1$mcVI$sp.apply(JFunction1$mcVI$sp.java:12)
at scala.Option.foreach(Option.scala:257)
at im.mange.flakeless.Flakeless.record(Flakeless.scala:20)
at im.mange.flakeless.innards.Execute$.$anonfun$apply$3(Execute.scala:13)
at im.mange.flakeless.innards.Execute$.$anonfun$apply$3$adapted(Execute.scala:13)
at scala.Option.foreach(Option.scala:257)
at im.mange.flakeless.innards.Execute$.apply(Execute.scala:13)
at im.mange.flakeless.innards.WithoutElement$.apply(WithoutElement.scala:10)
at im.mange.flakeless.Close.execute(Close.scala:17)
at im.mange.flakeless.Close$.apply(Close.scala:9)
at [snip]$2(PooledServer.scala:27)
at scala.sys.ShutdownHookThread$$anon$1.run(ShutdownHookThread.scala:34)
java.lang.NoClassDefFoundError: org/joda/time/DateTime
How about switching from Joda time to Java 8's time? Can you see any problems in doing that?
It'd also make Circe/Argonaut straightforward as neither ship with a Joda time codec AFAIK.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.