Git Product home page Git Product logo

screening's People

Contributors

cdebost avatar eliseosoto avatar stuk avatar toji avatar zacharyc avatar

Watchers

 avatar  avatar

Forkers

marchant

screening's Issues

Create a GUI

At the moment, the only way to view a script is by code. It would be nice to have an option to see the script represented visually, similarly to Studio, where each action is presented as a label.

Write scripts as functions

Right now scripts are written as plain function-less javascript. This means every script has to start with an instantiation of Agent, since everything is done through webdriver agents. It might make more sense to require scripts to define a function that takes an agent as a parameter. This could also serve as a hook for test variables, as per #9

Test /fix test execution on firefox

Latest version (39) works on some pages and not others. When tests fail, the agent reports an error stating that it did not have permission to access a property named "uuid". This occurs when it gets the html element (which it does by default, even if the script only navigates to a page then quits).

CSS race condition

CSS loads differently the first time the control-room is opened (or if caching is turned off)

Run multiple tests from one script

Currently, there is no way to run multiple scripts. The agent has a method that allows javascript code to be executed on the page, but we can't run another script by name. Which makes sense, since agents themselves don't have access to other scripts.

This could be accomplished by adding a parse step before handing over the code to the virtual machine. The simplest way would be to parse the script for certain directives and replace those directives with corresponding tests, i.e.:

If test1.js is defined as
{
var agent = new Agent();
agent.gotoUrl("localhost:8083/thing1");
assertEqual(agent.getSource(), "someBody");
}

and test2.js is defined as
{

runTest("test1.js");

var agent = new Agent();
agent.gotoUrl("localhost:8083/thing2");
assertContains(agent.getSource(), "span");
}

then the actual code sent to the virtual machine when running test2.js would be:
{
var agent = new Agent();
agent.gotoUrl("localhost:8083/thing1");
assertEqual(agent.getSource(), "someBody");

var agent = new Agent();
agent.gotoUrl("localhost:8083/thing2");
assertContains(agent.getSource(), "span");
}

Add testing variables

We should have a way to set testing variables, e.g. marking login information as a variable, and consequently being able to quickly modify the variable and run the test again. Or better yet, we could set up a script that runs a test multiple times with different variables, e.g.:

var agent = new Agent();

agent.runTest({"username": "montage"});
agent.runTest({"username": "declarativ"});

etc..

Currently, something like this is possible inside individual scripts by wrapping the whole test in a function and extracting literals into variables, but this requires manual work and it would be better if it was more automated

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.