Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Test doesn't fail if looking for invalid css , if the previous test in scenario passed #280

Open
pranavparikh opened this issue Nov 12, 2014 · 0 comments

Comments

@pranavparikh
Copy link

If a test executes before a locator controller, even if we have an invalid locator, the test passes if the previous test passed

[
{
"settings": [ "master" ],

    "name": "controllers",

    "config": {
        "baseUrl": "http://finance.yahoo.com"
    },
    "comment":"Tests for finance",
    "dataprovider" : {

        "Test YHOO Ticker" : {
            "group" : "func",
            "comment":"Ticker test",
            "params" :{

                "scenario": [
                    {
                        "comment":"Load finance page",
                        "page": "$$config.baseUrl$$",
                        "test":"test-dummy.js"
                    },
                    {
                        "comment":"Type yhoo in #txtquotes",
                        "controller": "locator",
                        "params": {
                            "value": "#invalid",
                            "text": "yhoo\n"
                        }
                    },
                    {
                        "comment":"Verify if the quote symbol matches",
                        "test": "test-quote.js",
                        "quote": "Yahoo! Inc. (YHOO)"
                    }
                ]
            }

        }
    }
},
{
    "settings": [ "environment:development" ]
}

]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant