I'm currently running into an issue with deleted data source still showing for my rest request in Setup Test. Any help to remove those deleted data sources?
Can you be more specific what you mean by "still showing"?
In the screenshot, I don't have any data source defined currently, but in Setup Test, look at the right up corner for the request. It has "Data Source" and shows "TestAccount" in the dropdown. "TestAccount" data source does not actually exist.
This looks like it is just a fluke of the tool. If you configure a REST Client as a normal test to use a data source, and then delete the data source, the data option will no longer show up in the REST Client editor. However, for Set Up tools it is showing up for some reason. It should not affect how the tool runs however.
I think it's a bug of the tool. In my test, I use data source and setup tool, the datasource in setup tool always duplicate itsself. And I do see the test runs werid behavior (fail at setup test) many times.
For both setup tests and for regular tests the data source combo box will appear in the tool editor once you add a data source to the scenario. This is so that you have the option of configuring the data source. As you have identified, the unexpected behavior for setup tests is that the data source still shows in the editor even if it has been deleted from the scenario.
The fact that the data source still shows in the setup tool test after you have deleted it from the scenario shouldn't affect the behavior of test execution, unless the setup test has been configured to use a data source value. If you are seeing that it does affect behavior, then we would need more information about exactly how your test is set up in order to provide suggestions how to update your tests to get expected behavior.
Yes. My test scenario setup tests use datasource value for username and password to get tokens for the regular tests to use. I found the only working workaround for my case is to create a subfolder and put everything (setup tests, tests) under it.