Is there a way where we can create multiple test scenario from a template apart from scenario outline ?
Hello team, I have a scenario as below
Scenario: Test Case
When User logs in as admin with password password
And User creates Connection as Connection Test
| ParameterName | ParameterFormula |
| filePath | |
And User adds Delimited File as Source
| TagA | TagB | TagC | TagD | TagE | TagF | TagG | TagH |
| Local (upload) | , | " | 1 | | @filePath | | |
And User adds Source Columns
| ColumnA | ColumnB | ColumnC | ColumnD | ColumnE | ColumnF | ColumnG | ColumnH | ColumnI | ColumnJ |
| Column | User | | Text | | | | | | |
| Column | ClientID | | Text | | | | | | |
| Column | IPAddress | | Text | | | | | | |
| Column | Result | | Text | | | | | | |
| Column | Date | | Date | | | | | | |
| Column | Bool | | Bool | | | | | | |
| Column | Number | | Number | | | | | | |
| Column | Choice | | Text | | | | | | |
| Column | MSC | | Text | | | | | | |
| Column | MSL | | Text | | | | | | |
| Standard Calculated Column | StandardCalculatedColumn | Concat(User,' ',ClientID) | Text | | | | | | |
And User adds Cinchy Table as Destination using load metadata
| ParamA | ParamB | ParamC | ParamD | ParamE | ParamF | ParamG |
| CLI | CinchyTableTarget4 | admin | password | true | | |
And User adds Target Columns using load metadata
| TestA | TestB | TestC |
| User | User | Display Name |
| ClientID | Client ID | |
| IPAddress | IP Address | |
| Result | Result | |
| Date | Date | |
| Bool | Bool | |
| Number | Number | |
| Choice | Choice | |
| MSC | MSC | |
| MSL | MSL | Number |
| StandardCalculatedColumn | StandardCalculatedColumn | |
And User adds Sync Behaviour with Synchronization Pattern as Full File, New Record Behaviour as Insert, Dropped Record Behaviour as Ignore, Changed Record Behaviour as Ignore
| Sync1 |
| Client ID |
When User adds Permissions
| Access1 | Access2 | Access3 | Access4 |
| Administrators, All Users | Administrators, All Users | Administrators, Cinchy Connections | Administrators, Test |
And User Start a Job with defaults
| ParameterName | Type | Value |
| filePath | File | Test1.csv |
Then Job contains following output with exit time 25 seconds
"""
Completed successfully.
==============================================================================
Source: 5 records processed
Verified: 5
Rejected: 0
Filtered: 0
Target: 0 records processed
Verified: 0
Rejected: 0
Filtered: 0
Reconciliation: 100 %
Created: 5/5 records
Updated: 0/0 records
Deleted: 0/0 records
----------------------------------------------
"""
My goal is to use this as a template and create multiple scenarios with different permutation and combination. I don't want to copy paste as there will be scenarios in thousands.
I tried scenario outline but it doesn't go well as there will lots of columns to be added along with some being null.
Let me please know if there are tools which can autogenerate this steps or any other approach that would help ?
-
Andreas Willich Any Thoughts ?
0 -
With this much detail in a scenario, it is very hard to use examples.
So first I would question if you really need to define everything every time or if some of the properties can be default values that are handled in the automation.
Check out our SpecFlow Masterclass at https://specflow.org/school/bdd-masterclass/. Lesson 2 has a lot of content about how to improve your formulation of scenarios.
0
Please sign in to leave a comment.
Comments
2 comments