Forum Discussion

harinadha's avatar
harinadha
Occasional Contributor
8 years ago
Solved

Any thought on how to set Authentication type to Basic over the run programmatically

I have a following code to create to create Basic profile for specific test step,    def testStep= testRunner.getTestCase().getTestStepByName("RunTimeOperation") testStep.getTestRequest().addBasic...
  • harinadha's avatar
    harinadha
    8 years ago

    Thank you for the response. and i have resolved the issue by adding the following code.

     

    testStep.getTestRequest().setSelectedAuthProfileAndAuthType(AbstractHttpRequest.BASIC_AUTH_PROFILE,CredentialsConfig.AuthType.PREEMPTIVE)

     

    and it is the same as you mentioned above.