IntelliJ Integration with ALM and Test results are not as expected
Answered
Hi All,
I have a challenge in current project where we are running multiple set of test data for single test case. when we are running it using Maven run. It is executing for the first test data and I can't see test results for second test input in ALM. How to achieve this and what is the solution to generate different test steps for every change of test data in ALM. Please help. Below is the sample scenario for your reference. Due to security concerns I have provided dummy data
Thanks,
Vamsee
@TestCase(123)
Scenario: Validate nulls
Given database connection is created without errors
When sql query from file Nulls.sql is parametrized
|DB |DATABASE_NAME |Table_NAME | COLUMN_NAME |WHERE_CONDITION |
|XX |XXX |Table1 | Column1 |MONTH=201812|
|YY |YYY |Table2 | Column2 |MONTH=201812|
Then column CNT contains values 0
Please sign in to leave a comment.
>It is executing for the first test data and I can't see test results for second test input in ALM.
What IntelliJ IDEA functionality are you referring to? What Run Configuration do you use to run tests? Attach screenshots describing the issue please.
I am referring to Feature file creation using Multiple set's of test data
This project is IntelliJ IDEA(Java) integration with Teradata and ALM. And also we use Maven to run the scripts and in command line I can see the below details.
Do you use any 3rd plugin for this?
What issue do you have with IntelliJ IDEA specifically? Please provide screenshots or small screencast describing it.
We are not using any plugin. Do you recommend any plugin for this?
Unfortunately I am unable to share the screenshots due to security constraints.
The issue is I have prepared the below scenario and ran it.
In ALM what is happening is.
3 Steps are created.
Step 1: Given database connection is created without errors- Passed
Step 2: When sql query from file Nulls.sql is parametrized - Passed
Step 3: Then column CNT contains values 0 - Passed
The attachment for the step 3 is the test data given in the first set. |XX |XXX |Table1 | Column1 |MONTH=201812|.
Now what changes do I need to in IntelliJ to run the step 3 with different set of data. I mean I am expecting another attachment in step 3 for the second set of data.
|YY |YYY |Table2 | Column2 |MONTH=201812|
(or)
If it creates another step 4 for different test data in the run time is also fine.
Hope this information will provide the picture of my requirement
What Run/Debug Configuration do you use to run tests?
Perhaps you can sensor sensitive information on the screenshots?
Please see the attached
@Kakani Vamsy what should be attached? I do not see anything. Could you verify?
Please me know the way to execute the test scenario with different sets of data in single run i.e the scenario will run two times, passing in one row of data at a time.
I was waiting for your update @Andrey Dernov which will be really helpful in our project.
>Now what changes do I need to in IntelliJ to run the step 3 with different set of data. I mean I am expecting another attachment in step 3 for the second set of data.
>Please me know the way to execute the test scenario with different sets of data in single run i.e the scenario will run two times, passing in one row of data at a time.
IDE does not provide any special configuration for this. Please refer to cucumber documentation. May be there is a special flag, option for this or feature file should be specifically structured. Check e.g. https://stackoverflow.com/a/46037918/2000323