Forum Discussion

Gunarm_Dyne's avatar
Gunarm_Dyne
Occasional Contributor
16 years ago

Test Steps aren't being added to Test Cases

I'm currently working on some Test Cases for a REST-based search service that currently has no WADL but I've been able to extract all of the necessary parameters.  For the sake of compartmentalized testing I decided to create a separate resource for each parameter: terms, help, highlight, etc. and add interesting combinations of parameters in a few of the resource methods.

The problem I'm having is that I can only add the first resource's methods to any Test Cases I create.  Any time I try to add any methods from the second+ resource, I get the Select TestCase menu, the Add Request to TestCase menu, but after I click OK, the Request is not added.  It doesn't matter if the second+ resource is a child resource of the first or not.

EDIT: This is on the 3.5-beta2, btw.

EDIT 2: It looks like the problem was attempting to create multiple resources using the same endpoint.  Creating a single resource with that endpoint and creating a separate method for each parameter and interesting combinations of parameters appears to be working right now.
  • iangfox1965's avatar
    iangfox1965
    Occasional Contributor
    I'd be interested to know what your error log was reporting at the time you were attempting to add the 2nd test step. I am experiencing the same symptom as you where I want to add a 2nd REST request test step to a test case. This is resulting in a NullPointerException error and I don't know why. The REST request itself works perfectly fine.