Invoke-WASJob

Invoke-WASJob

Creates and runs a job instance.

構文

Parameter Set: Default
Invoke-WASJob [-Job] <WASJob[]> [[-Runtag] <String> ] [[-Testpass] <String> ] [ <CommonParameters>]

詳細説明

The Invoke-WASJob cmdlet creates a new job instance in . It also initiates a run of the job instance. The Job parameter is required.

パラメーター

-Job<WASJob[]>

Specifies the job to invoke. This is a required parameter.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

false

-Runtag<String>

Specifies the run tag you want to add to the job. If not specified, the default run tag is used.

エイリアス

なし

必須?

false

位置は?

2

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Testpass<String>

Specifies the test pass you want to label the job with. If not specified, the default test pass is used.

エイリアス

なし

必須?

false

位置は?

3

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Run a job

This command gets all the jobs with "automated" in the job name, saves it as a variable, and runs the jobs.

PS C:\> $job = Get-WASJob -JobName *automated*
PS C:\> Invoke-WASJob -Job $job

Example 2: Run a job specifying runtag and testpass

This command gets all the jobs with "automated" in the job name, saves it as a variable, and runs the jobs adding run tag and test pass metadata to the job.

PS C:\> $job = Get-WASJob -JobName *automated*
PS C:> Invoke-WASJob -Job $job -RunTag "Test iteration 5" -TestPass "Spring 2012"

関連トピック

Get-WASJob

Update-WASJob

Windows Assessment Services Technical Reference