Skip to content

QualiSystems/Quali-API-PowerShell-Wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Quali-API-PowerShell-Wrapper

Installation

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"

Commands

Login

Invoke-Login -User 'User' -Password 'Pass' -Domain 'Domain' -TargetHost '10.165.4.1'

Get queued jobs

Get-QueuedJobs

Get running jobs

Get-RunningJobs

Get 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-JobDetails

Get 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" -asJson

Enqueue 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 $suiteJson

Stop 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 -asjson

Have fun :-)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •