Unhandled Error when trying to run list remotely

17 posts, 0 answers
  1. Javier
    Javier avatar
    5 posts
    Member since:
    Jun 2015

    Posted 13 Jan 2016 Link to this post

    Hello,

    I'm trying to run a test list on a Execution + Scheduling server but receiving an error during the upload process "Running test failed internally due to unhandled error"  .

    My telerik version is 2015.3.1217.0 on both machines.

    A couple of things that I tried without success:

    - Move the project files to a different location

    - Try running a test list from a new project

    - Restart the scheduling server

    - Tried to put the project under source control but I couldn't due to a different error (created another forum thread for that: http://www.telerik.com/forums/error-203-when-connecting-to-tfs)

     

     

    This is the log file on the remote machine:

    [01/13 06:49:37,Telerik.TestStudio.ExecutionManagerService.exe(1884:22)] First trace message from pool unnamed thread (managed ID = 22, native ID = 4956).
    [01/13 06:49:37,Telerik.TestStudio.ExecutionManagerService.exe(1884:22),Execution] JobBroker.ScheduleJobAsync() : Job satisfied all preconditions, id = 30821eb4-66e8-4921-8258-4b6279eb330e
    [01/13 06:49:42,Telerik.TestStudio.ExecutionManagerService.exe(1884:26)] First trace message from pool unnamed thread (managed ID = 26, native ID = 3652).
    [01/13 06:49:42,Telerik.TestStudio.ExecutionManagerService.exe(1884:26),Execution] JobRunner.RunJobAsync() : Unable to load test list, aborting run.
    [01/13 06:49:42,Telerik.TestStudio.ExecutionManagerService.exe(1884:26),Execution] JobRunner.RunJobAsync() : Use source control server: NO
    [01/13 06:49:42,Telerik.TestStudio.ExecutionManagerService.exe(1884:26),Execution] JobRunner.RunJobAsync() : Project source location: C:\Anova\TestStudio\Jazz
    [01/13 06:49:42,Telerik.TestStudio.ExecutionManagerService.exe(1884:26),Execution] JobRunner.RunJobAsync() : Check if test list is available at project location. Consider cleaning Job storage!
    [01/13 06:49:42,Telerik.TestStudio.ExecutionManagerService.exe(1884:26),Execution] JobRunner.RunJobAsync() : Job storage location: C:\Windows\system32\config\systemprofile\AppData\Roaming\Telerik\TestStudio\Scheduler\ScheduleStorage
    [01/13 06:49:42,Telerik.TestStudio.ExecutionManagerService.exe(1884:26),Execution] JobsController.CreateNewJob() : Unable to create a new job.

     

    I'm not sure if it has something to do or not, but the "Job storage location" on the remote machine is located on SysWOW64 and not on System32

     

     

     

     

    This is the log file on my client machine

     

    [01/13 10:54:55,Telerik.TestStudio.Desktop.exe(2104:1),Execution] RemoteExecutionViewModel.SendRun() : EXCEPTION! (see below)
    Situation: Running test list failed internally due to unhandled error!
    Outer Exception Type: System.Net.Http.HttpRequestException
    Message: Response status code does not indicate success: 500 (Internal Server Error).
    HRESULT: 0x80131500 (Official ID (if app.) = COR_E_EXCEPTION, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5376)
    Call Stack:
    at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
    at Telerik.TestStudio.Shared.Communication.BaseCommunicationLayer.<HandleResponse>d__5f.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
    at Telerik.TestStudio.Shared.Communication.BaseCommunicationLayer.<HandleResponse>d__62`1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
    at Telerik.TestStudio.Shared.Communication.BaseCommunicationLayer.<Post>d__46`2.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
    at Telerik.TestStudio.Shared.Communication.ExecutionManagerCommunicationLayer.<QueueJobRun>d__29.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
    at ArtOfTest.WebAii.Design.UI.ViewModels.RemoteExecutionViewModel.<SendRun>d__1d.MoveNext()

  2. Javier
    Javier avatar
    5 posts
    Member since:
    Jun 2015

    Posted 14 Jan 2016 Link to this post

    Update:

    I managed to solve the TFS problem, and now the project is running under source control without issues.

    I updated Test studio on the client and Runtime edition on my server to version 2015.3.1314.0

     But the error when running the test list remotely persists. The log file is exactly the same (isn't it strange that the log file still says: "Use source control server: NO"?)

  3. Javier
    Javier avatar
    5 posts
    Member since:
    Jun 2015

    Posted 15 Jan 2016 Link to this post

    Problem is solved.

    The ports used by the scheduling and storage service were not opened on the firewall settings.

  4. Ivaylo
    Admin
    Ivaylo avatar
    760 posts

    Posted 18 Jan 2016 Link to this post

    Hello Javier,

    Thank you for your update and I am glad to hear you have solved the problem experienced. As mentioned explicitly in the overview article, all ports should be opened if you are using firewalls.

    Regards,
    Ivaylo
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  5. Meera
    Meera avatar
    1 posts
    Member since:
    May 2015

    Posted 01 Aug 2016 Link to this post

    I am having the same issue Running test list failed internally due to unhandled error! when running tests remotely..Here is what is says in the execution machine log

     

    [08/01 09:55:30,Telerik.TestStudio.ExecutionManagerService.exe(4616:54)] First trace message from pool unnamed thread (managed ID = 54, native ID = 10212).
    [08/01 09:55:30,Telerik.TestStudio.ExecutionManagerService.exe(4616:54),Execution] JobBroker.ScheduleJobAsync() : Job satisfied all preconditions, id = 26ff4211-75fc-46c0-a178-9abd903f7f3c
    [08/01 09:57:00,Telerik.TestStudio.ExecutionManagerService.exe(4616:57)] First trace message from pool unnamed thread (managed ID = 57, native ID = 18832).
    [08/01 09:57:00,Telerik.TestStudio.ExecutionManagerService.exe(4616:57),Execution] JobRunner.RunJobAsync() : Unable to load test list, aborting run.
    [08/01 09:57:00,Telerik.TestStudio.ExecutionManagerService.exe(4616:57),Execution] JobRunner.RunJobAsync() : Use source control server: NO
    [08/01 09:57:00,Telerik.TestStudio.ExecutionManagerService.exe(4616:57),Execution] JobRunner.RunJobAsync() : Project source location: C:\Paylocity\WebLink\TelerikTestSuite\WebLink UI regression\Weblink automation
    [08/01 09:57:00,Telerik.TestStudio.ExecutionManagerService.exe(4616:57),Execution] JobRunner.RunJobAsync() : Check if test list is available at project location. Consider cleaning Job storage!
    [08/01 09:57:00,Telerik.TestStudio.ExecutionManagerService.exe(4616:57),Execution] JobRunner.RunJobAsync() : Job storage location: C:\Windows\system32\config\systemprofile\AppData\Roaming\Telerik\TestStudio\Scheduler\ScheduleStorage
    [08/01 09:57:00,Telerik.TestStudio.ExecutionManagerService.exe(4616:57),Execution] JobsController.CreateNewJob() : Unable to create a new job.

    I did make sure the ports are open and also the TFS source control is installed and configured

  6. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    549 posts

    Posted 04 Aug 2016 Link to this post

    Hello Javier,

    Thank you for contacting us. i am sorry to hear you are facing similar behavior again. Based on the log I assume you will need to restart the scheduling service on the machine where the scheduling client is. Then restart the execution clients on each execution machine. 

    Please let me know if that changed anything in the remote execution behavior. If not please provide both application and remote executor's log files via this thread to continue the investigation.Please clear them prior you start the faulty test list execution to ensure only relevant to this issue records will be stored within. 

    Additionally you could share some details about the test list. Is this a particular test list that could not be executed? Are all tests always failing? If you create a new sample project will a remote run also fail?

    Thank you in advance for the cooperation and please update me once you have any results. I hope to hear from you soon. 

    Regards,
    Elena Tsvetkova
    Telerik by Progress
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  7. aplicaciones
    aplicaciones avatar
    8 posts
    Member since:
    Apr 2017

    Posted 03 May Link to this post

    Hello,
    I am experiencing the same issue.
    The scenario is the following one:
    I have one local machine with a licensed Test Studio acting as client ( I haven't installed the storage service neither the scheduling service in here)
    In another machine (with trial version as I am evaluating the remote execution capability) I have installed the Storage Service and the Scheduling Service.
    Both machines have the same versions installed: 2017.1.207.0

    I have been able to connect remotely and from the Test Runner on the local machine I am able to see the remote scheduling Server connected (images attached)
    But when I try to "Run List Remotely" I get the Unhandled Exception"
    PS:The Firewall on both machines are disabled

    I have attached you as well the log files. 
    I hope you can give me some hints on what I may be doing wrong or what is happening under the hood.

  8. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    549 posts

    Posted 04 May Link to this post

    Hello,

    Thanks for the shared details. 

    I reviewed the log file and it seems that the test list you are trying to execute is a performance one. Please correct me if I am wrong. 

    If so please double check what Performance counters you have chosen and if they are applicable for the machine you run the tests on. Please refer to that article which provides further insights about gathering performance data. The most important information related to the current topic is listed under point 7 in the article. 

    I hope this will be helpful to you! 

    Regards,
    Elena Tsvetkova
    Telerik by Progress
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  9. aplicaciones
    aplicaciones avatar
    8 posts
    Member since:
    Apr 2017

    Posted 05 May in reply to Elena Tsvetkova Link to this post

    Hello I have done some progress on this but I haven't been able to run the list remotely yet!

    Firstly, answering your question: NO, it is not a performance list as far as I understand.
    In the "Select Test List type" drop-down I have only "Manual" and "Automated" options.
    So, it is an Automated Web Test. Please, correct me I am wrong.
    Currently, I am no longer getting the "Unhanded  Exception". So, tell me if this questions should be on another thread.

    Now, when I try to "run the list remotely" I get the the message attached on the image: "Your tests are now running"
    but on the "GUI Test Runner" (on the remote machine) I see on the "Remote Execution Details" this information:
    "Preparing to run test C:\Users\<MyUserName>\AppData\Local\Temp\Projects\98f565a9-5f6a-4c0b-a5b2-ba6f32573571\webvalenciarepo\NuevoTramite.tstest"
    "Succeeded = False"
    On my Authoring Machine (the client one) I see this on the log:

    Compile failed: c:\Users\<MyUserName>\AppData\Local\Temp\Projects\98f565a9-5f6a-4c0b-a5b2-ba6f32573571\webvalenciarepo\NuevoTramite.tstest.cs(111,35) : error CS1061: 'Valencia.Pages' no contiene una definición de 'SedeElectrónica6' ni se encontró ningún método de extensión 'SedeElectrónica6' que acepte un primer argumento de tipo 'Valencia.Pages' (¿falta una directiva using o una referencia de ensamblado?)
    Sorry for the message in Spanish but in any case when I access the aforementioned path is empty either on my Client Machine or my Remote machine.
    Could you help me wit this as I don't know what else I can do.

     

  10. aplicaciones
    aplicaciones avatar
    8 posts
    Member since:
    Apr 2017

    Posted 05 May in reply to aplicaciones Link to this post

    I have done some findings on this.
    I 've been able to run remotely a dummy Automated Web project. I can't still remotely run the project I am interested in.
    So, I guess it has something to do with  the project itself. Anyways, locally it runs properly but remotely for some reason is not running.
  11. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    549 posts

    Posted 08 May Link to this post

    Hi,

    Thanks for the shared details. 

    Could you please the drop the storage database as described in this article. Please note that dropping the whole db will delete the so far stored results as well. In case you require them please refer to the bottom of the article and drop only the Tests and Testlists collections. 

    Please let me know if that changed the behavior of remote execution! Thanks! 

    Regards,
    Elena Tsvetkova
    Telerik by Progress
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  12. aplicaciones
    aplicaciones avatar
    8 posts
    Member since:
    Apr 2017

    Posted 08 May in reply to Elena Tsvetkova Link to this post

    Hi,

    I have dropped the storage DB as the article describes and I still experience the same behavior of remote execution.

    On the other hand, I have another Automated Web Test Project ( a dummy one) in which I am able to run it remotely without any issues at all. I can even check that it creates the Directory C:\Users\<MySuerName>\AppData\Local\Temp\Projects

    So, I guess, as I have already mentioned, that it has something to do with the Automated test Project in which I`m working.
    I use an external dll that I'have placed on the root folder.

    Anyway, the error I'm getting is:" Compile failed" ant it says that it doesn't have a definition for one of my Page elements and asking if Is there a Missing assembly reference. 
    Locally, it works just fine.

    Best regards,

  13. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    549 posts

    Posted 11 May Link to this post

    Hi,

    Thanks for your cooperation and details shared. 

    As of the additional notes I suspect that the element in question is not present in the Element repository for that exact test. The project is only partially deployed by remote execution (all required files related to the tests in test list) and then Pages.cs file is generated during runtime. 

    If the element does not persist in the repository for any of the tests included in the test list it will be missing in the generated on remote machine Pages.cs file and thus a compile error comes up. 

    Based on the error text you could double check in the Elements explorer for that particular test if the element actually exist. If not you should add it manually and then try to execute remotely again. 

    Please let me know if the above suggestions are correct and help you resolve the case. Thanks! 

    Regards,
    Elena Tsvetkova
    Telerik by Progress
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  14. aplicaciones
    aplicaciones avatar
    8 posts
    Member since:
    Apr 2017

    Posted 11 May in reply to Elena Tsvetkova Link to this post

    Hi,
    I have double checked and the element exists.

    Anyway, I have just been able to run the test remotely. I believe the issue was related to a third part dll that I use on my test project.
    I have placed on the root folder and in addition to that I have registered in the GAC as well.
    Now is running. So, I guess it was related to that.

    My apologies if I have changed the course of this thread with my issues. 

    Thanks for your help and patience.

  15. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    549 posts

    Posted 11 May Link to this post

    Hi,

    Thanks for getting back to me. I am glad to hear you managed to solve the observed inconsistency. And yes it is a requirement to have external dlls on the remote machine as well. 

    Thanks for your cooperation! 

    Regards,
    Elena Tsvetkova
    Telerik by Progress
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  16. Chris
    Chris avatar
    34 posts
    Member since:
    Oct 2015

    Posted 17 Jul Link to this post

    I have this exact same issue. I did confirm that my external dlls are on both machines. My system consists of 1 stand alone machine (the one im on now) and one virtual machine that has the scheduling+storage+execution server. When you say root folder, are you talking about the plugins folder on the execution server machine? When you mentioned GAC, what is the exact location of that? Thanks in advance.

     

    - Chris

  17. Nikolay Petrov
    Admin
    Nikolay Petrov avatar
    208 posts

    Posted 20 Jul Link to this post

    Hello Chris,

    Please provide more details on this case. 

    The GAC location defers in respect of the Windows version. I believe that you could find web resources related to this topic.

    Kind Regards,
    Nikolay Petrov
    Progress Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top