Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Update test data written in Test Cases

Vishwanath Hokrani
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 21, 2023

Hi,

 

I have test case written as in BDD scenarios format. 

Given valid username and password
When the user enters "<username>" and "<password>" the credentials
Then the user logs into the customer portal successfully
Examples:
| username   | password |
| testiing      |testing@123 |

 

After db refresh, i need to change login details like username and password. 

If its 1 TC, then i can modify easily. Currently i have around more than 500 TC, how to modify it?

 

Do we have common repository, where we can add data like this and use in the test case scenarios. 

 

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 21, 2023

Hi @Vishwanath Hokrani -- Welcome to the Atlassian Community!

Are you asking about managing tests/test data with Jira, or with another tool (or marketplace addon)?

If another tool, please talk with your Jira admin about how your scenario may be accomplished.

If this is for Jira, how are you managing tests and test data today?

Kind regards,
Bill

Vishwanath Hokrani
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 21, 2023

Hi Bill,

Thanks for quick reply. 

Yes, I'm talking about managing test data with Jira. 

Currently in our company, test cases running manually. So when they running the test case they not define any test data within the Test cases. 

Now we started automating test cases using Cucumber playwright tool.  So we are defining test data within scenarios in test cases. To run test cases, we  import the test cases in BDD format i.e. in cucumber feature file and run the feature file. 

Since we define test data in test cases, is there way to update test data in test cases  either using API  or define common test data file which can be used  within the test case.

 

Thanks & Regards,

Hokrani

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 22, 2023

Thanks for that information.  You do not indicate if you are using Jira Cloud or Server/Data Center versions, and so for something that might work with both...

You could create Automation for Jira rules, possibly calling the REST API functions for your testing tool, to update the data.  Please check your testing tool and your Jira instance to learn what is available.  Automation rules are included with Jira Cloud, and they can be added to Server/Data Center versions (although I believe there are free and paid versions).

Regarding your scenario: why do you want to change data for automated tests?  This seems to contradict one idea of test automation to be consistent and repeatable.  Are you doing this to incrementally add additional tests from your Behavior-Driven Development (BDD) practices?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events