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

Data driven descriptors does not work with context #251

Open
pranavparikh opened this issue May 30, 2014 · 0 comments
Open

Data driven descriptors does not work with context #251

pranavparikh opened this issue May 30, 2014 · 0 comments

Comments

@pranavparikh
Copy link

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

    }

]
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