hpsa / ADM-TFS-Extension

Apache License 2.0
6 stars 35 forks source link

Fail on RunFromFileSystem Task UFT from TFS #15

Open Jbrito87 opened 6 years ago

Jbrito87 commented 6 years ago

Hi, When I Queue my build to RunFromFileSystemTask (UFT) from TFS application, I obtain an error bellow:

Microsoft.PowerShell.Commands.WriteErrorException: Task Failed PowerShell script completed with 1 errors.

Can You help me on this topic ?

Thanks.

Regards, João Brito

2018-04-13 14_52_57-build gfi_test_20180413_133131 2018-04-13 14_53_11-

rajutuft commented 6 years ago

Hi Joao,

I am getting the same error. Have it got fixed for you. If yes, whats the steps you followed to overcome the problem. Request to send the steps plz

leonpw commented 6 years ago

Hello,

We encountered the same problem. This is our log:

2018-05-29T13:23:41.5028655Z Preparing task execution handler. 2018-05-29T13:23:43.0760228Z Executing the powershell script: C:\VSTS Agent_work_tasks\RunFromFileSystemTask_cfbe1493-3bb1-44d5-ac87-7f14a148a6f0\1.0.0\localTask.ps1 2018-05-29T13:23:44.0951247Z "Started..." 2018-05-29T13:23:44.1121264Z Launcher timeout is 10675199::02:48:05 2018-05-29T13:23:44.1121264Z Controller Polling Interval: 30 seconds 2018-05-29T13:23:44.1121264Z PerScenarioTimeout: 10675199::02:48:05 minutes 2018-05-29T13:23:44.1181270Z FileSystemTestRunner timeout is 10675199.02:48:05.4775807 2018-05-29T13:23:44.1181270Z Mc connection info is - Mc HostAddress: , McPort: 8080, Username: , UseSSL: 0, UseProxy: 0, ProxyType: 0, ProxyAddress: , ProxyPort: 0, ProxyAuth: 0, ProxyUser: 2018-05-29T13:23:44.1281280Z 1 tests found: 2018-05-29T13:23:44.1281280Z c:\UFT_TEST\webtest1 2018-05-29T13:23:44.1291281Z ============================================================================ 2018-05-29T13:23:44.2351387Z 29-05-2018 15:23:44 Running: c:\UFT_TEST\webtest1 2018-05-29T13:23:46.4093561Z Test result: Error 2018-05-29T13:23:46.4093561Z 29-05-2018 15:23:46 Test complete: 2018-05-29T13:23:46.4093561Z ------------------------------------------------------------------------------------------------------- 2018-05-29T13:23:46.4313583Z ================================================ 2018-05-29T13:23:46.4313583Z Run status: Job failed, total tests: 1, succeeded: 0, failures: 0, errors: 1 2018-05-29T13:23:46.4313583Z Error : 2018-05-29T13:23:46.4313583Z ================================================ 2018-05-29T13:23:46.4933645Z ##[error]Microsoft.PowerShell.Commands.WriteErrorException: Task Failed 2018-05-29T13:23:46.5243676Z ##[error]PowerShell script completed with 1 errors. 2018-05-29T13:23:46.5243676Z ##[section]Finishing: UftFileSystemExecution

rajutuft commented 6 years ago

Please update if you are able to resolve the issue. We still have the problem

SIvaNagarajuB commented 6 years ago

Hi rajutuft c please Update if you solved the issue. i am also facing same problem.

leonpw commented 6 years ago

Didn't solve the problem.

SIvaNagarajuB commented 6 years ago

Yes i solved that Error... While installing your VSTS build agent with Personal Access Token, in .\config.cmd Dont select as a service .

Steps:

Enter work folder (press enter for _work) > 2018-09-26 09:25:18Z: Settings Saved. Enter run agent as service? (Y/N) (press enter for N) > n Enter configure autologon and run agent on startup? (Y/N) (press enter for N) > y Enter User account to use for autologon > qtptestuser Enter Password for the account HP2-PC\qtptestuser > *** Checking for policies that may prevent autologon from working correctly. Checking for policies that may prevent screensaver from being disabled. Restart the machine to launch agent and for autologon settings to take effect. Enter Restart the machine at a later time? (Y/N) (press enter for N) (press ente r for N) >

Press N for restarting...while restarting our agent will be opened with command prompt,it will listen jobs from vsts

sanpatnaik commented 5 years ago

Any other solution apart from reinstalling the VSTS build agent?

SIvaNagarajuB commented 5 years ago

Any other solution apart from reinstalling the VSTS build agent? Yes..... Steps:

1.Click on Download ( it will download the files)

2.PS C:> mkdir agent ; cd agent PS C:\agent> Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$HOME\Downloads\vsts-agent-win-x64-2.140.0.zip", "$PWD") PS C:\Users\qtptestuser> .\config.cmd

Connect:

Enter server URL > https://myprojectshub.visualstudio.com Enter authentication type (press enter for PAT) > Enter personal access token > **** Connecting to server ...

Register Agent:

Enter agent pool (press enter for default) > Enter agent name (press enter for HP2-PC) > Scanning for tool capabilities. Connecting to the server. Successfully added the agent Testing agent connection. Enter work folder (press enter for _work) > 2018-09-26 13:20:32Z: Settings Saved. Enter run agent as service? (Y/N) (press enter for N) > y Enter User account to use for the service (press enter for NT AUTHORITY\NETWORK SERVICE) > qtptestuser Enter Password for the account HP2-PC\qtptestuser > *** Granting file permissions to 'HP2-PC\qtptestuser'. Service vstsagent.myprojectshub.HP2-PC successfully installed Service vstsagent.myprojectshub.HP2-PC successfully set recovery option Service vstsagent.myprojectshub.HP2-PC successfully set to delayed auto start Service vstsagent.myprojectshub.HP2-PC successfully configured Service vstsagent.myprojectshub.HP2-PC started successfully PS C:\Users\qtptestuser>

UFT service will be added to windows services it will always in automatic start once you finish above steps.

SIvaNagarajuB commented 5 years ago

I did it successfully.

If any one is having problem on executing UFT scripts from VSTS then please send an email to below mail , i will send complete documentation with screen shots. my mailID : Sivanagaraju46@gmail.com

SIvaNagarajuB commented 5 years ago

UFT_VSTS.docx

download the Word docuemnt and follow steps

ShivaLuckily commented 4 years ago

I am trying to integrate UFT with Azure devops(VSTS) but getting error by using the UFT plugin in Azure devops(RUNFROMFILESYSTEM Plugin).

My test cases is in my local system. I have given the path of my test cases in RUNFROMFILESYSTEM Plugin but i am getting error as "##[error]Could not find file 'C:\Shiva_work_tasks\RunFromFileSystemTask_cfbe1493-3bb1-44d5-ac87-7f14a148a6f2\1.0.4\task.json'.

arunakella commented 4 years ago

any Idea why I am getting below error. Any step to resolve below issue would be great

[error]Microsoft.PowerShell.Commands.WriteErrorException: Task Failed

[error]PowerShell script completed with 1 errors.

[section]Starting: RunFromFileSystemTask

============================================================================== Task : UFT File System Execution Description : Execute UFT tests from file system Version : 1.0.4 Author : Help :

[warning]Task 'RunFromFileSystemTask' (1.0.4) is using deprecated task execution handler. The task should use the supported task-lib: https://aka.ms/tasklib

Preparing task execution handler. Executing the powershell script: C:\Users\aakella\Desktop\vsts-agent-win-x64-2.160.1_work_tasks\RunFromFileSystemTask_cfbe1493-3bb1-44d5-ac87-7f14a148a6f2\1.0.4\localTask.ps1 "Started..." Run build tests Launcher timeout is 10675199::02:48:05 Controller Polling Interval: 30 seconds PerScenarioTimeout: 10675199::02:48:05 minutes FileSystemTestRunner timeout is 10675199.02:48:05.4775807 Mc connection info is - Mc HostAddress: , McPort: 8080, Username: , TenantId: , UseSSL: 0, UseProxy: 0, ProxyType: 0, ProxyAddress: , ProxyPort: 0, ProxyAuth: 0, ProxyUser: 1 tests found: C:\AutomatedTests\AreaManager101

06-12-2019 17:02:01 Running: C:\AutomatedTests\AreaManager101 Running test: C:\AutomatedTests\AreaManager101 Test result: Failed 06-12-2019 17:13:58 Test complete: C:\AutomatedTests\AreaManager101

================================================ Run status: Job unstable (Passed with failed tests), total tests: 1, succeeded: 0, failures: 1, errors: 0, warnings: 0 Failed : C:\AutomatedTests\AreaManager101

Return code: -2

Task failed

[error]Microsoft.PowerShell.Commands.WriteErrorException: Task Failed

[error]PowerShell script completed with 1 errors.

[section]Finishing: RunFromFileSystemTask

SIvaNagarajuB commented 4 years ago

May i how did you configure UFT_Lancher environment variable?? May be that UFT working dll is old version which is not supported for Build pipeline.

On Fri 6 Dec, 2019, 5:24 PM arunakella, notifications@github.com wrote:

any Idea why I am getting below error. Any step to resolve below issue would be great

[error]Microsoft.PowerShell.Commands.WriteErrorException: Task Failed

[error]PowerShell script completed with 1 errors.

[section]Starting: RunFromFileSystemTask Task : UFT File System

Execution Description : Execute UFT tests from file system Version : 1.0.4 Author : Help : ##[warning]Task 'RunFromFileSystemTask' (1.0.4) is using deprecated task execution handler. The task should use the supported task-lib: https://aka.ms/tasklib Preparing task execution handler. Executing the powershell script: C:\Users\aakella\Desktop\vsts-agent-win-x64-2.160.1_work_tasks\RunFromFileSystemTask_cfbe1493-3bb1-44d5-ac87-7f14a148a6f2\1.0.4\localTask.ps1 "Started..." Run build tests Launcher timeout is 10675199::02:48:05 Controller Polling Interval: 30 seconds PerScenarioTimeout: 10675199::02:48:05 minutes FileSystemTestRunner timeout is 10675199.02:48:05.4775807 Mc connection info is - Mc HostAddress: , McPort: 8080, Username: , TenantId: , UseSSL: 0, UseProxy: 0, ProxyType: 0, ProxyAddress: , ProxyPort: 0, ProxyAuth: 0, ProxyUser: 1 tests found: C:\AutomatedTests\AreaManager101 06-12-2019 17:02:01 Running: C:\AutomatedTests\AreaManager101 Running test: C:\AutomatedTests\AreaManager101 Test result: Failed 06-12-2019 17:13:58 Test complete: C:\AutomatedTests\AreaManager101

Run status: Job unstable (Passed with failed tests), total tests: 1, succeeded: 0, failures: 1, errors: 0, warnings: 0 Failed : C:\AutomatedTests\AreaManager101

Return code: -2

Task failed

[error]Microsoft.PowerShell.Commands.WriteErrorException: Task Failed

[error]PowerShell script completed with 1 errors.

[section]Finishing: RunFromFileSystemTask

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hpsa/ADM-TFS-Extension/issues/15?email_source=notifications&email_token=AKMOXNJWDXJANTZRWWRN4DLQXI4PPA5CNFSM4E2N6UCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGD33IQ#issuecomment-562544034, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKMOXNPYVNZ7U4TBU4FOEYLQXI4PPANCNFSM4E2N6UCA .

arunakella commented 4 years ago

I have downloaded from GIT https://github.com/hpsa/ADM-TFS-Extension/tree/master/installation

May i how did you configure UFT_Lancher environment variable?? May be that UFT working dll is old version which is not supported for Build pipeline. On Fri 6 Dec, 2019, 5:24 PM arunakella, @.***> wrote: any Idea why I am getting below error. Any step to resolve below issue would be great ##[error]Microsoft.PowerShell.Commands.WriteErrorException: Task Failed ##[error]PowerShell script completed with 1 errors. ##[section]Starting: RunFromFileSystemTask Task : UFT File System Execution Description : Execute UFT tests from file system Version : 1.0.4 Author : Help : ##[warning]Task 'RunFromFileSystemTask' (1.0.4) is using deprecated task execution handler. The task should use the supported task-lib: https://aka.ms/tasklib Preparing task execution handler. Executing the powershell script: C:\Users\aakella\Desktop\vsts-agent-win-x64-2.160.1_work_tasks\RunFromFileSystemTask_cfbe1493-3bb1-44d5-ac87-7f14a148a6f2\1.0.4\localTask.ps1 "Started..." Run build tests Launcher timeout is 10675199::02:48:05 Controller Polling Interval: 30 seconds PerScenarioTimeout: 10675199::02:48:05 minutes FileSystemTestRunner timeout is 10675199.02:48:05.4775807 Mc connection info is - Mc HostAddress: , McPort: 8080, Username: , TenantId: , UseSSL: 0, UseProxy: 0, ProxyType: 0, ProxyAddress: , ProxyPort: 0, ProxyAuth: 0, ProxyUser: 1 tests found: C:\AutomatedTests\AreaManager101 06-12-2019 17:02:01 Running: C:\AutomatedTests\AreaManager101 Running test: C:\AutomatedTests\AreaManager101 Test result: Failed 06-12-2019 17:13:58 Test complete: C:\AutomatedTests\AreaManager101 ================================================ Run status: Job unstable (Passed with failed tests), total tests: 1, succeeded: 0, failures: 1, errors: 0, warnings: 0 Failed : C:\AutomatedTests\AreaManager101 Return code: -2 Task failed ##[error]Microsoft.PowerShell.Commands.WriteErrorException: Task Failed ##[error]PowerShell script completed with 1 errors. ##[section]Finishing: RunFromFileSystemTask — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#15?email_source=notifications&email_token=AKMOXNJWDXJANTZRWWRN4DLQXI4PPA5CNFSM4E2N6UCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGD33IQ#issuecomment-562544034>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKMOXNPYVNZ7U4TBU4FOEYLQXI4PPANCNFSM4E2N6UCA .

I have downloaded from GIT https://github.com/hpsa/ADM-TFS-Extension/tree/master/installation

SIvaNagarajuB commented 4 years ago

Do u have latest version???

On Fri 6 Dec, 2019, 5:53 PM arunakella, notifications@github.com wrote:

I have

May i how did you configure UFTLancher environment variable?? May be that UFT working dll is old version which is not supported for Build pipeline. … <#m-8403914910801120448_> On Fri 6 Dec, 2019, 5:24 PM arunakella, @.***> wrote: any Idea why I am getting below error. Any step to resolve below issue would be great

[error]Microsoft.PowerShell.Commands.WriteErrorException: Task Failed

[error]PowerShell script completed with 1 errors. ##[section]Starting:

RunFromFileSystemTask Task : UFT File System Execution Description : Execute UFT tests from file system Version : 1.0.4 Author : Help :

[warning]Task 'RunFromFileSystemTask' (1.0.4) is using deprecated task

execution handler. The task should use the supported task-lib: https://aka.ms/tasklib Preparing task execution handler. Executing the powershell script: C:\Users\aakella\Desktop\vsts-agent-win-x64-2.160.1_work_tasks\RunFromFileSystemTask_cfbe1493-3bb1-44d5-ac87-7f14a148a6f2\1.0.4\localTask.ps1 "Started..." Run build tests Launcher timeout is 10675199::02:48:05 Controller Polling Interval: 30 seconds PerScenarioTimeout: 10675199::02:48:05 minutes FileSystemTestRunner timeout is 10675199.02:48:05.4775807 Mc connection info is - Mc HostAddress: , McPort: 8080, Username: , TenantId: , UseSSL: 0, UseProxy: 0, ProxyType: 0, ProxyAddress: , ProxyPort: 0, ProxyAuth: 0, ProxyUser: 1 tests found: C:\AutomatedTests\AreaManager101 06-12-2019 17:02:01 Running: C:\AutomatedTests\AreaManager101 Running test: C:\AutomatedTests\AreaManager101 Test result: Failed 06-12-2019 17:13:58 Test complete: C:\AutomatedTests\AreaManager101 ================================================ Run status: Job unstable (Passed with failed tests), total tests: 1, succeeded: 0, failures: 1, errors: 0, warnings: 0 Failed : C:\AutomatedTests\AreaManager101 Return code: -2 Task failed

[error]Microsoft.PowerShell.Commands.WriteErrorException: Task Failed

[error]PowerShell script completed with 1 errors. ##[section]Finishing:

RunFromFileSystemTask — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#15 https://github.com/hpsa/ADM-TFS-Extension/issues/15?email_source=notifications&email_token=AKMOXNJWDXJANTZRWWRN4DLQXI4PPA5CNFSM4E2N6UCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGD33IQ#issuecomment-562544034>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKMOXNPYVNZ7U4TBU4FOEYLQXI4PPANCNFSM4E2N6UCA .

I have downloaded from GIT https://github.com/hpsa/ADM-TFS-Extension/tree/master/installation

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hpsa/ADM-TFS-Extension/issues/15?email_source=notifications&email_token=AKMOXNK3GLT5NP7DSHS7IOLQXI74DA5CNFSM4E2N6UCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGD5VXY#issuecomment-562551519, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKMOXNLNTZPOII73GTFPEWTQXI74DANCNFSM4E2N6UCA .

rick-jordan commented 4 years ago

Hi, When I Queue my build to RunFromFileSystemTask (UFT) from TFS application, I obtain an error bellow:

Microsoft.PowerShell.Commands.WriteErrorException: Task Failed PowerShell script completed with 1 errors.

Can You help me on this topic ?

Thanks.

Regards, João Brito

2018-04-13 14_52_57-build gfi_test_20180413_133131 2018-04-13 14_53_11-

Hi, When I Queue my build to RunFromFileSystemTask (UFT) from TFS application, I obtain an error bellow:

Microsoft.PowerShell.Commands.WriteErrorException: Task Failed PowerShell script completed with 1 errors.

Can You help me on this topic ?

Thanks.

Regards, João Brito

2018-04-13 14_52_57-build gfi_test_20180413_133131 2018-04-13 14_53_11-

Hello João,

Did you get this issue resolved? How? I am having right now exactly the same problem ....

Many Thanks, Diogo Cruz