Skip to main content
Question

Tosca API Testing - TCD - Is it possible to create generic API Module and run tests via TCD entries?

  • June 14, 2026
  • 2 replies
  • 20 views

Hello,

I am trying to figure out if this is even possible.  I want to have for ‘one swagger api’  an API test module that is ‘generic’ that I can feed the method and all the various request items to it and send using the TCD test sheet.

 

So think of it as one module but ‘many tests’ including type, test data, methods different (POST/GET) etc.   Is this a possibility? I have tried but seem to be limited to just the ‘one’ URL  Ideas anyone? We can’t use external tools as we are on premisis and secure but want the maximum flexibility without having to do rescans every time or have a separate module for each type of call?  Thanks

I have one test of one endpoint with a bunch of security tests I can run in Test sheet varying the values of fields like token, user, parameter data, etc but that seems to be all I can do.

appreciate any help,

2 replies

Forum|alt.badge.img
  • Employee
  • June 15, 2026

Hi ​@rkobetich,

thank you for reaching out. 

 

I hope I don’t get it wrong, but you are asking for a ‘generic’ API Module where you feed the data from TestCaseDesign.

 

API Modules are designed to be parameterized. This is done using the Technical View where you can create Module Attributes. see this documentation link for payload as an example: https://docs.tricentis.com/tosca-2026.1/en-us/content/tbox/api_scan_edit_payload.htm

This Module Attributes can be used for several other fields of an API Module: Methods, Parameters, Headers, etc.

Those can then later be used within TCD as in any other TestCase.

 

In general I wouldn’t consider it best practice as this creates complexity and I’d suggest to create a module for each endpoint at least. Using one module for each request is not what it is designed for but it should be capable of doing so.


  • Author
  • Space Cadet
  • June 15, 2026

Thank you very much I will try it out I found out through Claude that unfortunately you can't make a generic module that can vary the methods. However if you group all the gets together and make one get module or then all the post together and make one post generic module that will work I will try today thank you