JetBrains / JetBrains/integration-tests-vm-scripts

Exception thrown from PowerOn.ps1

Open
#1 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
4
Forks
7
PR merge metrics
No merged PRs in 30d

Description

I invoke the Integration test as shown below. It fails on the binding of the parameters.

.\Platform\build\TestProduct\Impl\IntegrationTests.ps1 -GuestCredentials "guest_login","pass" -FilesToTest "C:\Tests" -cloneNamePattern "Win7-64bit-TS51-SQL" -VmName "Win7-64bit-TS51-SQL_20140723+Clean" -ViServerData VCenter, USERNAME, PASSWORD

Cannot bind positional parameters because no names were given.
At C:\Users\boris.m\Documents\GitHub\TeamCity-extensions\Platform\build\TestProduct\Impl\InTest\PowerOn.ps1:38 char:39

  •             $jA.data = Receive-Job <<<<  -Job $j
    
    • CategoryInfo : InvalidArgument: (:) [VirtualEnvironment.ps1], ParameterBindingException
    • FullyQualifiedErrorId : AmbiguousPositionalParameterNoName,VirtualEnvironment.ps1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the command shown in the issue and inspect Platform/build/TestProduct/Impl/InTest/PowerOn.ps1 at line 38, along with the IntegrationTests.ps1 parameter invocation. Trace the Receive-Job call and parameter binding, then verify that the integration test no longer raises ParameterBindingException.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.