the-monkeys-and-maud / monkeytestjs Goto Github PK
View Code? Open in Web Editor NEWAutomated functional testing for front end web developers
Home Page: http://monkeytestjs.io
License: MIT License
Automated functional testing for front end web developers
Home Page: http://monkeytestjs.io
License: MIT License
Not happening on local dev or stage.
tl;dr:
load external code into config.js via $.getJSON/Script?
getting lo-dash loaded and running in workspace from within onLoadPage and setup?
Currently I'm trying to switch from Selenium based tests to this as the overhead seems much less and this should be much faster, however I'm trying to make the config to better suit my tests which were based around page objects but lack the understanding to do.
The first issue which I had was that that the config,js would become a pain to maintain due to various different information I need to have, so I thought that I could load parts of it by JSON or JavaScript. This I did via appending:
$.getJSON("test_assets/logins.json")
.done(function(data){
global.monkeytestjs.config.logins = data;
});
in the config.js and it works fine. Is there a more appropriate way of doing this?
The larger issue I'm having is that I almost always need access to helper script functions in the workspace which use jQuery. With Selenium I just injected my own script before each test, however here I'm having trouble running such scripts in the workspace when their set in the config. For example I tried adding the following into the config,js:
fun: function(a) {
$("#username").val(a);
}
However when called from a test this seems to work only on the parent page, so how would I go about:
Thanks for your time,
Alex
this.page.status is not set in /build/tests/tests/global/not_server_error.js - but only on http://monkeytestjs.io/tests/. It's fine in local dev and on stage.
`The following error was encountered while trying to retrieve the URL: http://monkeytestjs.io/tests
Unable to determine IP address from host name monkeytestjs.io
The DNS server returned:
Server Failure: The name server was unable to process this query.
This means that the cache was not able to resolve the hostname presented in the URL. Check if the address is correct.`
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.