Open command line and copy those lines:
git clone https://github.com/QualiSystems/Quali-API-PowerShell-Wrapper.git
cd Quali-API-PowerShell-Wrapper
powershell -NoExit -Command "Import-Module .\QualiAPI"
Login
Invoke-Login -User 'User' -Password 'Pass' -Domain 'Domain' -TargetHost '10.165.4.1'Get queued jobs
Get-QueuedJobsGet running jobs
Get-RunningJobsGet job details by job id
Get-JobDetails -JobId "49da2ac2-ad45-454f-9f7e-4461455b49c4"Stop job by job id
Invoke-StopJob -JobId "49da2ac2-ad45-454f-9f7e-4461455b49c4"Get job details for the first queued job
(Get-QueuedJobs)[0] | Get-JobDetailsGet suite details by Suite Id
Get-SuiteDetails -SuiteId "49da2ac2-ad45-454f-9f7e-4461455b49c4"Get suite status by Suite Id
Get-SuiteStatus -SuiteId "49da2ac2-ad45-454f-9f7e-4461455b49c4"Get Suite Template Details by suite template name as json result
Get-SuiteTemplateDetails -SuiteName "SuiteTemplateName" -asJsonEnqueue suite by suite name - returns the suite id
Invoke-EnqueueSuite -SuiteName "SuiteTemplateName"Enqueue custom suite by suite name and json input (see json examples in the api documentation) - returns the suite id
Invoke-EnqueueCustomSuite -SuiteName "SuiteTemplateName" -SuiteDetailsJson $suiteJsonStop suite by suite id
Invoke-StopSuite -SuiteId "49da2ac2-ad45-454f-9f7e-4461455b49c4"All Get commands support -AsJson switch. This switch will output the command result in a Json format and not as Powershell object Example:
Get-RunningJobs -asjsonHave fun :-)