Forum Discussion

Apoorva6's avatar
Apoorva6
Frequent Contributor
9 years ago

Can we pass HTTPS header and Basic level authentication in Rest service from a file ?

Hi Team,

 

We have many Rest URI's which will have same Header and Basic authentication part. I need to know is there a way to export them from a file , so that all test cases and test steps can share that header and use it. I am using Open source SoapUI and HTTPS is the header type.

  • KarelHusa's avatar
    KarelHusa
    Champion Level 1

    I usually set the common HTTP headers as the project level properties.

     

    Then within the test steps I set the value of the HTTP header to e.g. ${#Project#CertificateSerialNumber} .

     

    This is very efficient if you generate the test steps programatically and still gives the testers an option to change the values during the tests easilly.