Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Test Suite Generated From Traffic File - Missing VirtualAsset Context

Options

I am successfully generating a virtual asset and a test suite from a traffic file using the REST API. When I execute the test suite, the tests fail because all of the tests are pointing directly at the URI's as they are listed in the traffic file e.g. /customer/doSomthing In order for the tests to succeed, I believe they should be including the /context of the virtual asset. e.g. /myVirtualAsset/customer/doSomething

Is there a way to execute the test suite so that it knows to include the /context of the virtual asset?

Thanks,

JT

Comments

  • williammccusker
    williammccusker Posts: 644 ✭✭✭
    Options

    Hi,
    Typically when a test suite is created from traffic it will create an environment variable that is used to control the URI the tests are using. Can you take a look and see if you test created an environment and if so if updating it for the path of the asset you created works?
    Also you should be able to deploy the virtual asset to the original path rather than having a context path segment. Would that work for your case?

  • jefftuckerbofa
    jefftuckerbofa Posts: 234
    Options

    There's no Environment in the Test Suite, but I suspect that I am just sending over a bare bones request when I generate it. I see some references to environment and config in the REST API, however I am not sure what values to send.

    I will look at the deployment options to see if that works. Thanks for the quick reply.

    JT