CodedUI Test Error Unexpected token I in JSON at position 0 RRS feed

  • Question

  • Hi, I'm running my coded UI test on our QA machine using VSTS Release. The coded UI tests all passes but I still receive an error and I have no idea how to fix it. I'm using Selenium components for Coded UI Cross Browser Testing.

    Here's the error:

    2018-03-14T13:57:45.1932351Z vstest.console.exe
    2018-03-14T13:57:45.1932564Z "C:\Agent\_work\r1\a\somefolder\Testing.dll"
    2018-03-14T13:57:45.1932762Z /TestCaseFilter:"TestCategory=CodedUIIE|CodedUIChrome|CodedUIFirefox"
    2018-03-14T13:57:45.1932891Z /logger:"trx"
    2018-03-14T13:57:45.1933028Z Starting test execution, please wait...
    2018-03-14T13:57:45.1977055Z ##[error]Unhandled: Unexpected token I in JSON at position 0
    2018-03-14T13:57:45.1986404Z ##[error]Unhandled: Command failed: cscript.exe //Nologo C:\Agent\_work\_tasks\VSTest_ef087383-ee5e-42c7-9a53-ab56c98420f9\2.3.22\node_modules\regedit\vbs\regListStream.wsf A
    2018-03-14T13:57:53.4833227Z Passed CodedUIIEEnAddToCartTestMethod
    2018-03-14T13:58:07.6080862Z Passed CodedUIChromeEnAddToCartTestMethod
    2018-03-14T13:58:27.5198281Z Passed CodedUIFirefoxEnAddToCartTestMethod

    I'd appreciate any insight as how to fix this error.


    Wednesday, March 14, 2018 2:22 PM

All replies

  • Hi Patrick JT,

    Welcome to the MSDN forum.

    >> ##[error]Unhandled: Unexpected token I in JSON at position 0

    Based on this error, you could have a look at following thread which has the similar issue.


    And this forum is discussing Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.

    Since the TFS forums have been locked, the discussion for TFS has moved. If you want to know more information about TFS build, I recommend you could post your issue on Stack Overflow or Developer Community, where the MS support engineers for TFS will assist you with it.

    Thanks for your understanding.



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, March 15, 2018 5:08 AM