Previous: Automated Testing Next: Performance Data Collection 
There are two methods to import a use case library: via Git or ZIP. For Git import, a corresponding key is required. One way is to directly click the OAuth button to authorize; the other is to manually obtain the key.
The steps to manually retrieve the key on GitHub are as follows:

Permission Scope: Please include the repo scope in the authorization.

If the code repository is under your personal account, you can usually access it with the default permissions on the GitHub authorization page. (The default permission grants access to your personal account.)

Refer to GitHub’s guidelines to verify your personal settings:
https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-membership-in-organizations/requesting-organization-approval-for-oauth-apps
In your personal Settings > Applications, confirm that the UDT app has been authorized.


If the code repository is owned by an organization, you need to request authorization for the corresponding organization on the GitHub authorization page.
(For example, if the code repository is ABC under the assxxx organization—i.e., the repository URL is https://github.com/assxxx/ABC.git—you need to request authorization for the assxxx organization on the authorization page.)

Refer to GitHub’s guidelines to verify the organization’s settings:
Approving OAuth apps for your organization - GitHub Docs
Go to the Organization’s Settings and confirm that the UDT app’s permission is set to Approved.


Please confirm that the Token type is classic and that the repo permission has been checked.
https://github.com/settings/tokens

The steps to manually retrieve the token on Bitbucket are as follows:
Visit https://id.atlassian.com/manage-profile/security/api-tokens and click the “Create API token with scopes”.

Follow the steps given by the webpage and select the “Bitbucket” API token app.

Select the Scope name “read:repository:bitbucket” and click “Create token”.

Finally you can copy your secret API token.

Go to User Configuration and find “Personal Access Token”. Click “Create new token”, fill in the necessary fields and select the scope with “read_repository”.
Previous: Automated Testing Next: Performance Data Collection 