Skip to content

Offline Test Execution extension failed "TFS.WebApi.Exception: Test run with id 20 could not be found. It may have been deleted." while importing  #15

Open

Description

@xingyu217

Steps to reproduce:

Create a new test plan
Create some test cases with test case steps
Select Offline test execution and choose Export
Click Export to Excel
Open exported excel file and change statues of test cases > Save and close excel
Go back to internet explorer
Choose Import in Offline test execution
Choose that excel file
Click Import button
It will fail with that error

image

I checked Network, there is the REST API to create test runs and succeed (200), but there isn’t such test run (checked in test run page and Microsoft Test Manager).

I tried to create test run with that REST API (POST https://dev.azure.com/starain18/p2/_apis/test/runs?api-version=3.1) through PostMan, the test run be created successfully and can view it in Microsoft Test Manager.

Not sure what’s the problem of it. Please check it.

Activity

  1. icnocop commented on Jan 21, 2020

    @icnocop

    Could it be that test run with id 19 actually contains the issue, and the error message is just misleading?

  2. mattias-skold commented on Jan 21, 2020

    @mattias-skold

    Dont think so
    The import creates a testrun in 3 steps

    1. frist create a "empty" test run
    2. fill it with detailed test results
    3. Close it
      From the network log -it seems like there is an error on the post of the detailed results, and as a result - the import failed - and we're actually cleaning it up by removing the test run
  3. icnocop commented on Jan 21, 2020

    @icnocop

    What is the url and error message when posting the detailed results?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions