Dear Thanh To,
I want to run Katalon tests against OAuth 2.0 and Azure AD B2C. In order to generate and refresh Bearer Token I used msal4j library: (import com.microsoft.aad.msal4j).
also in Build.Gradle updated : compile group: ‘com.microsoft.azure’, name: ‘msal4j’, version: ‘1.6.1’
This will never work. Don’t misunderstand. Katalon project is NOT driven by Gradle.
As the following document explains you need to download the required jar and save it into the <projectDir>/Drivers folder. This folder is the only place where Katalon Studio allows users to place additional jar files.
Please copy and paste the console log here, and the screenshot of the JAR files you included. I think I saw something about missing dependencies, which may mean you havent included enough JARs.
@kazurayam , Yes I do understand.
Secondly I tried out this after installing gradle explicitly and having compatibility issues. Please see the screen shot. TBH: I am not that familiar with Gradle.
But this is where I am having an issue.
@duyluong My main objective is to use Katalon with OAuth 2.0 and Azure AD B2C. Because we are using OpenID Connect and ‘Bearer’ Token will be expired after 1 hour. In order to get a new token or refresh the token I need to use msal4j library. Here , I am having issues with external dependancy Please help me out or suggest better work around. Though I can proceed with my task.
Caused by: java.io.IOException: Unable to delete file 'C:¥Users¥kahmed¥katalon Studio¥...¥Drivers¥katalon_generated_accessors-smart-1.2.jar'
You need to shutdown Katalon Studio GUI (or close the project) before you execute the command gradle katalonCopyDependency.
When you execute the katalonCopyDependency task, gradle tries to delete all katalon_generated_*.jar files in the Drivers directory. If you have Katalon Studio still running, it will hold the jar files in the Drivers so that gradle fails to delete them.