-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[karate-gatling] explore ways of composing existing tests better for specific flows #471
Comments
additional thought, should be possible to refer to the feature+scenario directly in one short-cut notation: karateFeature("classpath:mock/cats-create.feature@name=foo") would we need any other meta info on top of this ? |
@ptrthomas could we then do something like this -> karateFeature("classpath:mock/*.feature@name=foo") |
@ssailappan yeah, that would be cool. maybe we should look at AOP point-cut syntax for inspiration ! I'm thinking v1 should keep it simple and have each feature explicit. other possibilities: karateFeature("classpath:mock/cats.feature@name=create,readMany,delete") |
@ptrthomas Just thinking here whether it would be better if we can read the variables from one feature file in "gatling simulation class" and pass it to the corresponding feature file as well. |
@manoj404 sorry i’m confused again. can you kindly provide an example. |
@manoj404 also please read this section of the docs carefully: https://github.com/intuit/karate#script-structure hint: each |
@ptrthomas Let's say, we have all the reusable feature files for CRUD operation and we want to run performance on Get a record test case. So something like below steps i can write in simulation class,
Again I might be thinking wrong here, but it's just a thought process. I think, if we can do something like this, then it might be a best way to reuse the functional feature files for performance test case. Please let me know if you have any queries. |
No. you have to combine a flow into one scenario (or feature). Looks like you are simply not able to accept this concept. did you even read the link I posted in my previous comment ? any comments on that ? |
@ptrthomas Yeah i understand. That was just a thought process. Thank you |
@manoj404 a couple of extra points. just so that I can explain this to others later:
hope that makes sense ! |
this now makes it possible to compose gatling tests out of existing suites more efficiently
implemented this, but decided to keep it simple. only one tag can feature in the "tag selector"
And it does not need to be in the
The good thing is that if multiple |
0.9.0 released |
Triggered by this question on Stack Overflow: https://stackoverflow.com/q/51504264/143475 and others who have discussed this with me as well.
Please comment and add asks / opinion.
I see the following themes:
@name=foo
will be considered special in KaratescenarioNames( "createUser,deleteUser")
The text was updated successfully, but these errors were encountered: