Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
xingyu217 opened this issue Dec 28, 2018 · 3 comments

Comments

@xingyu217
Copy link

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.

@icnocop
Copy link

icnocop commented Jan 21, 2020

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

@mattias-skold
Copy link
Contributor

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

@icnocop
Copy link

icnocop commented Jan 21, 2020

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants