Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test step properties question #36

Closed
blui opened this issue Sep 8, 2018 · 2 comments
Closed

Test step properties question #36

blui opened this issue Sep 8, 2018 · 2 comments

Comments

@blui
Copy link

blui commented Sep 8, 2018

Hello! I'd like to ask if the plugin allows users to specify specific properties to use for different test steps. Say, for example, We have test step A and test step B.

I want the plugin to run both A and B in succession, but use a header value X for test step A and a header value Y for test step B.

If this feature isn't yet supported, I am wondering if there will be any plans to add the support.

Thank you!

@daggerok
Copy link
Collaborator

daggerok commented Sep 21, 2018

Hello,

have you try do something like this?

[
    'A': 'X',
    'B': 'Y,

].each { myTestCase, myHeader ->
    tasks.create(name: "test$myTestCase", type: io.byteshifter.plugins.soapui.tasks.TestTask) {
        testSuite = 'my-test-suite'
        testCase = myTestCase
        soapui.test.projectProperties = [ // in soapui-test-project.xml use project property: 'header'
          "header=$myHeader",
        ]
    }
}
./gradlew testA
./gradlew testB

if it doesn't help, try this gradle soapui-runner as far as I remember it should support what you need


Regards,
Maksim

@daggerok
Copy link
Collaborator

daggerok commented Oct 31, 2018

Seems like problem solved. Closing due to inactivity

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

No branches or pull requests

2 participants