Open Daniel-Mietchen opened 4 years ago
@Daniel-Mietchen regarding this topic, I came across Selenium. I used it a couple of years ago, and I didn't even remember it until I came across it again.
Pro's: renders javascript, which would be great for us. Drivers for several browsers (although chrome is the one best supported). Con's: it's slower than most frameworks when crawling/testing for errors.
Do you know it? If so, what do you think?
DataTables on pages are now being tested.
Code: https://github.com/nunogit/scholia-junit-selenium
CI / automated testing https://travis-ci.org/nunogit/scholia-junit-selenium
Next steps: Now that the basic infrastructure is set, the next steps are:
In parallel test this against a proxy and/or with in-page optimization and assess if the failure rate decreases. Issues: https://github.com/fnielsen/scholia/issues/1024, https://github.com/fnielsen/scholia/issues/67 and https://github.com/fnielsen/scholia/issues/1012
I just added some examples but think this flat file with just the Wikidata URLs is a bit hard to manage in the long run. What about using a Wikidata page as a source for the tests, e.g. something similar to but more machine friendly than https://www.wikidata.org/wiki/Wikidata:WikiProject_Scholia/Testing ?
Some useful starting points here would be