ruhirm
12 months agoOccasional Contributor
2 TestSuites with diff auth/jwt clientID/secret. How do I configure it in Event handler?
Hi,
I have 2 TestSuites and each uses diff auth/jwt (clientID/secret). How do I configure it in Event handler - RequestFilter.filterRequest to use depending on TestSuite name?
I tried this but it does not work -
def get_testsuitename = context.testCase.testSuite.name
log.info(get_testsuitename)
if get_testsuitename == "TestSuite1"{
def CLIENT_ID = "aaa";
def SECRET = "bbb";
}
else if
get_testsuitename == "TestSuite2"{
def CLIENT_ID = "cc";
def SECRET = "ddd";
}
Then I tried using TestSuiteRunListener.beforeRun but no luck π
Any help would be appreciated!
Thanks