TAEF: Unable to load TAEF Explorer on Visual Studio 2019

XI ZHANG 1 Reputation point
2022-09-25T13:14:42.7+00:00

Hey,

I am new to Taef test now got some issues regarding load Taef Explorer on VS2019. I am trying to test C# project locally via my own PC. The installed Taef version is 10.22.413.17311 which shown as the latest version on VS manage extensions tool. Installation process followed this link https://learn.microsoft.com/en-us/windows-hardware/drivers/taef/getting-started

All went well regarding executing testing via cmd: te.exe MyTests.dll, but cannot access to Taef Explorer UI for debugging. The UI shown as grey, and folder or any button is unclickable.
244469-unclickable-ui.png

From the AppData\Roaming\Microsoft\VisualStudio\16.0_xxxx\ActivityLog.xml, it shows error like this:

<entry>
<record>958</record>
<time>2022/09/25 12:39:19.109</time>
<type>Error</type>
<source>VisualStudio</source>
<description>CreateInstance failed for package [TDP.Components.Menus]Source: 'mscorlib' Description: Could not load file or assembly 'Microsoft.VisualStudio.Shell.Framework, Version=17.0.0.0, Culture=neutral.......</description>
<guid>{2B8C5FB1-FAE7-41A0-9FD8-88E2AF39D793}</guid>
<hr>80004005 - E_FAIL</hr>
<errorinfo></errorinfo>
</entry>

Here are the current settings for TDP:
244527-tdp-setting.png

I have tried to uninstall Taef and reinstall Taef multiple times via TDP2019.vsix., also tried to repair or uninstall then reinstall VS2019, the issue still persists. Can you give some guidance if there any setting I got wrong. Also, if the UI issue cannot be fixed, is there a way to debug via cmd? I have tried to debug via cmd with debug flag /waitForDebugger and attach to process via VS, but cannot hit the breakpoint :(, is this the right way to do that? I followed this link for debug via cmd: https://github.com/microsoft/terminal/blob/main/doc/TAEF.md#debugging-tests

Thanks in advance!
Cassie Zhang

Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,642 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. S.Sengupta 20,641 Reputation points MVP
    2022-09-28T01:03:33.017+00:00

    Try to manually installing and uninstalling TAEF on a test computer

    https://learn.microsoft.com/en-us/windows-hardware/drivers/taef/getting-started

    0 comments No comments

  2. XI ZHANG 1 Reputation point
    2022-09-28T12:10:22.05+00:00

    Thanks for reply, I have tried manually install via

    cd C:\Program Files (x86)\Windows Kits\10\Testing\Runtimes
    msiexec /i "Test Authoring and Execution Framework x64-x64_en-us.msi"

    command as suggested on above link, the installation process exit fast from cmd and it cannot install Taef explorer properly, not sure why. From the control panel, I cannot find the TAEF program, so I uninstalled it via visual studio managed extension page under Extensions -> Manage Extensions-> uninstalled.

    I am using Windows 11. Not sure if there is compatible issue?

    Let me know if you need more information, thanks for the help!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.