pyresttest icon indicating copy to clipboard operation
pyresttest copied to clipboard

How can i use values of one yaml file in second yaml file using import?

Open mravitej opened this issue 7 years ago • 1 comments

I need to give all my parameters in one file i.e variables.yaml and I need to use values of variable.yaml in test_cases.yaml

for example:

variables.yaml

- config:
   - testset: "Test cases using test app"
   - variable_binds: { username: 'ravitej',
password: '123456789'}

test_cases.yaml

- test: # Tenant_User: User Login without portal_name
   - name: "Tenant_User: User Login without portal_name"
   - url: "/user/login"
   - method: "POST"
   - body: {template: {"username": "$username", "password": "$password", "authtype": "plain"}}
   - headers: {Content-Type: application/json}
   - expected_status: [200]

how can I import variables.yaml file in test_cases.yaml?

mravitej avatar Jun 14 '17 12:06 mravitej

@mravitej you can not now, look into #256

mvitiuk avatar Jul 26 '17 12:07 mvitiuk