Forum Discussion

sunilkumargalla's avatar
sunilkumargalla
New Contributor
13 years ago

how to set oauthheader for RestRequests without EventHandler

I am trying to build a java tool for rest services testing which internally uses SoapUI Java API.

The testcases are authored through SoapUI and then the testcase and WADL are exported into corresponding files.
The tool creates a SoapUI project dynamically using soapUI api and loads the WADL and testcase and then executes the same.
and trying to set oauth header for the rest request.

can you guide on how to set oauthheader for RestRequests without EventHandler?

1 Reply

  • Hi,
    Sorry but I couldn't understand how are you creating/intercepting the RestRequest to set the header attributes.
    You can create the request header parameters while creating the requests and test cases. OR you could have a Groovy test step to do it.

    Can you please elaborate bit more when/where (in the execution flow) are you trying to set the header parameters?

    Best Regards,
    Prakash
    SmartBear Sweden