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

Data driven descriptors does not work with context #251

Open pranavparikh opened 10 years ago

pranavparikh commented 10 years ago

Running this throws the error

] [INFO] DataProvider - [ { uri: 'urn:uuid:5e6ecb36-72a3-4c3b-97ce-a9e367a597b6#/config', schemaUri: 'urn:uuid:098fc000-6568-4665-a274-253a6813937a#/properties/config', attribute: 'type', message: 'Instance is not a required type', details: [ 'object' ] }, { uri: 'urn:uuid:5e6ecb36-72a3-4c3b-97ce-a9e367a597b6#/dataprovider/Test%20Data%20Driven%20Descriptor/params/page', schemaUri: 'urn:uuid:098fc000-6568-4665-a274-253a6813937a#/properties/dataprovider/additionalProperties/properties/params/properties/page', attribute: 'type', message: 'Instance is not a required type', details: [ 'string' ] } ]

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

        "name": "controllers",

        "config": [
            {
                "finance": {
                    "baseUrl": "http://finance.yahoo.com",
                    "searchBtnId": "#mnp-search_box"
                }
            },
            {
                "yahoo": {
                    "baseUrl": "http://yahoo.com",
                    "searchBtnId": "#p_13838465-p"
                }
            }
        ],

    "dataprovider" : {

            "Test Data Driven Descriptor" : {
                "group" : "func",

                "params" :{

                    "page": "$$config.baseUrl$$",
                    "test": "dataDriventest.js",
                    "searchBtnId":"$$config.searchBtnId$$"

                }

            }
        }
    },
    {
        "settings": [ "environment:preprod" ],
        "config": [
                    {
                        "finance": {
                            "baseUrl": "http://mail.yahoo.com",
                            "searchBtnId": "#mnp-search_box"
                        }
                    },
                    {
                        "yahoo": {
                            "baseUrl": "http://gma.yahoo.com",
                            "searchBtnId": "#p_13838465-p"
                        }
                    }
                ]

    }

]