Forum Discussion
Hi Michael,
Sure, sounds frustrating, but open source products are here for us to improve :-)
I must admit I've never used the import/export functionality on a level less granular than project level (which I think worked fine last time I did it).
Maybe there's a problem exporting/importing TestCase's where there is a dependency on a more global object e.g. a service definition which is defined at project level? Its just a guess, but maybe only non-dependant TestSteps within the TestCase export fully? I haven't had time to try it, but I guess if you look in your exported TestCase.xml maybe there are details missing which mean your TestSteps don't get fully replicated on import?
Were there any error messages in any of the logs on import or export?
Regards,
Rup
Also, as an alternative, is the 'clone' option on a your TestCase useful at all?
- mmoser188 years agoFrequent Contributor
I tried the Clone functionality. It works "somewhat". Meaning if I define a service with (a) method(s) with the same name(s) as those that the TestSuite being cloned refers to, it indeed creates a new testsuite containing copies of the test steps (and these even including headers, assertions, etc.), so that would almost fit my bill. I could live with the effort having to define those methods beforehand and having to select one for each step, although that's very tedious, too.
But - and that's big BUT: for some stupid reason it does not copy ALL parameters. My calls have about 10 parameters each. For some strange reason about 6 or 7 of these are copied over fine but 3 parameters are always missing.
The names are exactly the same so I don't get, why these values are not copied over, as well.
But just randomly copied values are almost as good or bad as none, since one then has to double check each and everyone. :-(
This is so infuriatingly buggy and intransparent!
- mmoser188 years agoFrequent Contributor
Aaahh! Now I finally got it: the missing values are the same as the default values. One needs to specify the default values in the service definitions and then these values also appear in the test-steps!
OK - so, with that new wisdom I now finally have a way to somewhat reliably copy a test-suite from one project into another!
One has to manually create a service and method(s) in the target project - including the parameters and their default values.
Then one clones the test-suite from project A into project B and one needs to select and assign the right service and method for each test-step along the way.
Not exactly very elegant but still somewhat faster than recreating the test-suite(s) from scratch...
- rupert_anderson8 years agoValued Contributor
Hi Michael,
Good, I'm pleased you worked through it and thanks for sharing it back so others may benefit! :-)
I had a feeling that some project level resources like service definitions might create a dependency issue on TestSteps, does sound somewhat manual what you had to do..
I suppose a possible improvement would be to automatically clone/create the service definitions & methods as part of the clone as required?
Glad you got to the bottom of it anyway,
Thanks,
Rupert
Related Content
Recent Discussions
- 9 days agoemoya