SDKs
...
v2
Samples
How To Run Tests
3min
in addition to the provided samples, there are also tests written in the repository these tests work similarly to the samples but automatically verify the correct behavior of the sdk using the testing package setup instructions create a license with product code test this license must support online activation consumption borrowing floating cloud it must have available floating slots and consumption units it must also include a feature with floating cloud consumption feature code testfeature available floating slots and consumption units once that is done, you can run the following tests testlicenseconsumption testactivatelicense testlicensefeatureconsumption testlicensecheckandrelease testlicensefeaturecheckandrelease testlicensefloatingborrow in addition create a license with product code testdisabled , disable it, and then run testactivatedisabledlicense create an expired license with product code testexpired to run testexpiredlicensecheck these tests automatically activate licenses, update consumptions, check licenses, perform releases, and validate that changes are properly reflected both in the license response and local storage important to run the tests correctly, you must configure your config yaml file properly by providing the necessary credentials and license details clientid "your client id" clientsecret "your client secret" cryptoproviderkey "your crypto provider key" # required if using oauth apikey "your api key" sharedkey "your shared key" verbose true verify signature true products productcode1 licensekey "your license key" productcode2 username "your username" password "your password"