Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TFS throws Microsoft.PowerShell.Commands.WriteErrorException when finishing Lab Management Task #40

Open
madcat-nl opened this issue Oct 7, 2020 · 0 comments

Comments

@madcat-nl
Copy link

Hi,

We have configured an TFS agent according to the documentation, including the UFT service.

When we run it, in ALM a timeslot is created and the test will run fine.
When the test finishes, it will create a write error (see logging below) (not sure what it's trying to write)

In another thread we saw that not running it as a service solved it, but that is not the case with us.

We have tried:
-Running it as service or as command line
-Running it as administrator
-Making sure the files are 'unblocked' (is does not show that checkbox, but also removed it via powershell)
-gave owner right to the agent folders and UFTWorking folder
-removing work folder
-Reinstall agent
-rebooting TFS agent and uft agent/lab service agent

What should we do to make the WriteErrorException disappear?

Thanks in advance!

Logging:

2020-10-07T12:04:33.8689248Z ##[section]Starting: Run Smoketest on D4

2020-10-07T12:04:33.8845702Z ==============================================================================

2020-10-07T12:04:33.8845854Z Task : UFT ALM Lab Management

2020-10-07T12:04:33.8845957Z Description : Use this build step to run ALM server-side functional test sets and Build Verification Suites.

2020-10-07T12:04:33.8846052Z Version : 1.0.0

2020-10-07T12:04:33.8846155Z Author :

2020-10-07T12:04:33.8846223Z Help :

2020-10-07T12:04:33.8846299Z ==============================================================================

2020-10-07T12:04:33.9072306Z Preparing task execution handler.

2020-10-07T12:04:34.2254669Z Executing the powershell script: C:\Agent_work_tasks\AlmLabManagementTask_91001daf-aaaa-4444-a6ff-8acf9d222e3a\1.0.0\localTask.ps1

2020-10-07T12:04:53.5193872Z ALM Lab Management task recognized

2020-10-07T12:04:53.5194408Z

2020-10-07T12:04:53.5194534Z

2020-10-07T12:04:53.5201392Z Logged in successfully to ALM Server https://mfalm.Hostname.net/qcbin/ using UFTUser

2020-10-07T12:04:53.5201677Z

2020-10-07T12:04:53.5201875Z

2020-10-07T12:04:53.5203304Z Executing TEST_SET ID: 1701 in DOMAIN/PROJECT

2020-10-07T12:04:53.5203498Z

2020-10-07T12:04:53.5203608Z

2020-10-07T12:04:53.5204927Z Description: Smoketest - 401

2020-10-07T12:04:53.5205068Z

2020-10-07T12:04:53.5205174Z

2020-10-07T12:04:53.5206562Z TEST_SET run report for run id 1705 is at: https://mfalm.Hostname.net/qcbin/ui/?redirected&p= DOMAIN/PROJECT &execution-report#/test-set-report/1705

2020-10-07T12:04:53.5206733Z

2020-10-07T12:04:53.5206839Z

2020-10-07T12:04:53.5208124Z Polling... Run ID: 1705

2020-10-07T12:04:53.5208303Z

2020-10-07T12:04:53.5208409Z

2020-10-07T12:04:53.5209721Z Timeslot id: 1534

2020-10-07T12:04:53.5209858Z

2020-10-07T12:04:53.5210002Z

2020-10-07T12:04:53.5211253Z 2020-10-07 14:04:35:Timeslot ID '1534' was created successfully

2020-10-07T12:04:53.5211397Z

2020-10-07T12:04:53.5211546Z

2020-10-07T12:04:53.5212800Z 2020-10-07 14:04:36:Creating run-time data for run '1705' of 'Test Set' '1701' (Timeslot ID '1534'; BVS ID '2341')

2020-10-07T12:04:53.5213005Z

2020-10-07T12:04:53.5213112Z

2020-10-07T12:04:53.5214325Z 2020-10-07 14:04:36:TestSet ID: '1705' start time: '2020-10-07 14:04:36.687'

2020-10-07T12:04:53.5214526Z

2020-10-07T12:04:53.5214632Z

2020-10-07T12:04:53.5216039Z 2020-10-07 14:04:51:Timeslot ID '1534' was closed

2020-10-07T12:04:53.5216214Z

2020-10-07T12:04:53.5216320Z

2020-10-07T12:04:53.5217594Z Timeslot 1534 is Finished.

2020-10-07T12:04:53.5217795Z

2020-10-07T12:04:53.5217940Z

2020-10-07T12:04:53.5219133Z Timeslot start time: 2020-10-07 14:04:35, Timeslot end time: 2020-10-07 14:04:51

2020-10-07T12:04:53.5219282Z

2020-10-07T12:04:53.5219388Z

2020-10-07T12:04:53.5220631Z Run state of 1705: Finished, Completed successfully: Y

2020-10-07T12:04:53.5220779Z

2020-10-07T12:04:53.5220886Z

2020-10-07T12:04:53.5330587Z ##[error]Microsoft.PowerShell.Commands.WriteErrorException

2020-10-07T12:04:53.5567006Z ##[error]PowerShell script completed with 1 errors.

2020-10-07T12:04:53.5575145Z ##[section]Finishing: Run Smoketest on D4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant