Publish Operation Failed for Custom Test Type

Hi there,

When I try to publish the test results from a run of a custom test type, I get "Publish Operation Failed."

When I include the test in a build, the build log also displays the same error:

Results file:      C:\SecureBuild\AdventureWorks\Build_0111\TestResults\TFSSERVICE_VSTSL05 2005-11-18 17_30_02_Any CPU_Debug.trx
        Run Configuration: Local Test Run
        Waiting to publish...
        Publishing results of test run TFSSERVICE@VSTSL05 2005-11-18 17:30:02_Any CPU_Debug to http://vstsl05:8080/Build/v1.0/PublishTestResultsBuildService.asmx...
        Publish operation failed.
        MSBUILD : warning : Publish operation failed.
        The previous error was converted to a warning because the task was called with ContinueOnError=true.


Does anyone know why this is happening I appreciate it.

Thanks


Answer this question

Publish Operation Failed for Custom Test Type

  • VJM

    Thanks very much for your help! I did as you advised, and now I can publish the test results from my custom test type.

    Sincerely,
    Jennie


  • LucMorin

    TIP = Test Information Provider
    To have a TIP installed = the DLL is registered in the registry to allow TFS to locate those test types when someone publishes with them.



  • tbrinkman

    Well, this sounds like the solution to my problem, if I could only figure out what TIP means and where it is installed.

    Could you help me on that matter

    TIA

    ralf



  • zhengjs

    Hi there,

    I have installed the TIP on Visual Studio 2005 (I can see the custom test type when I click on "New Test..." under the Test menu).

    Is there documentation somewhere that shows how to register the TIP on the application tier for Team Foundation Server I appreciate your help.

    Thanks,
    Jennie

  • Christopher P.

    The custom TIP needs to be installed on the Application Tieir -- without this, we can't de-serialise the types in the TRX file.

  • SimonDa

    Hi,

    Are you able to publish straight unit tests
    If not, can you try following the steps details here

    Yours,
    Dominic



  • Vedek Andy

    Jennie,

    The possible reason I can think of is the permission is not set correctly on the drop share. It should grant Full control to Everyone for the Permissions and grant full control on the Security for the service account.

    Thanks,
    James

  • Eric Perlin - MSFT

    Hi James,

    I checked the permissions on the drop share; they are as you specified. Also, I can publish other test types like Web Tests successfully.

     I can view the test results of the custom test type when opening the trx file. I just can't seem to publish it. I appreciate any suggestions.

    Thanks,
    Jennie


  • Anfernee

    Excuse me, but...

    Can you be more specific I've created my first app with tests. I've created a function and a test function respectively. After that I've created a list test, used by myBuild in Team Builds.

    This was all created in my local machine. However, I've installed Visual Studio in TFS Application Server. It's in that machine that I want to run tests.

    This is the log from build:

    Loading C:\TFSBuilds\testerdpt13\myBuild\BuildType\..\Sources\MyAppToTestTeamBuild\MyAppToTestTeamBuild.vsmdi...

    Search path(s) for tests:
    C:\TFSBuilds\testerdpt13\myBuild\BuildType\..\Sources\..\Binaries\Debug\
    C:\TFSBuilds\testerdpt13\myBuild\Sources\MyAppToTestTeamBuild
    Search path(s) for default run configuration:
    C:\TFSBuilds\testerdpt13\myBuild\Sources\MyAppToTestTeamBuild

    Starting execution...

    Results Top Level Tests
    ------- ---------------
    Passed (MyList/)TestProject1.TCalculadoraTest.SomaTest
    1/1 test(s) Passed

    Summary
    -------
    Test Run Completed.
    Passed 1
    ---------
    Total 1
    Results file: C:\TFSBuilds\testerdpt13\myBuild\TestResults\tfssetup_TFS 2006-02-02 11_58_23_Any CPU_Debug.trx
    Run Configuration: Local Test Run
    Waiting to publish...
    Publishing results of test run tfssetup@TFS 2006-02-02 11:58:23_Any CPU_Debug to http://tfs:8080/Build/v1.0/PublishTestResultsBuildService.asmx...
    Publish operation failed.

    What do I need to copy from my machine to server

    Thanks in advance,

    Rui Dias


  • papaboom

    Not really -- this is something we're working on.

    The best way right now is to Steal the reg keys from the client you have registered the TIP on, and import them into the server.

    Additionally, you need to place the TIP Binaries in:

    %TfsInstallDir%\Web Services\Build\bin
    and
    %TfsInstallDir%\Web Services\Warehouse\bin\Plugins

    Once you've done that, it should all work.

  • Publish Operation Failed for Custom Test Type