YahooArchive / arrow

FE Test framework designed to promote TDD
http://yahoo.github.io/arrow/arrow_intro.html
BSD 3-Clause "New" or "Revised" License
55 stars 59 forks source link

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

Open pranavparikh opened 10 years ago

pranavparikh commented 10 years ago

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" ]
}

]