Importing test case from excel getting following error: Unsupported content type: text/plain
![]() I am very new to RQM and have been asked to try to export test cases from Excel to RQM using the RQM add-in for Excel. I am using RQM 3.0 and when I installed the add-in it came with samples. I use one of their examples for my test. The export from Excel said it succeeded and it produced to directories. One for test cases and one for test scripts. When I went into RQM to import the test case I received the following error: Unsupported content type: text/plain I don't know if it is talking about a specific field or the file. Them following is the XML file that I was trying to import:
<?xml version="1.0" encoding="utf-8"?>
Preconditions:
Post-condition:
Business rule Covered:
Test Data Req:
Back-end/Third party systems involved:
Notes:
|
Accepted answer
![]()
Hello,
The content type on the document is wrong. The REST API defines a set of content types that are acceptable. RQM takes the xls documents and changes them into XML.
When you go to export your file you need to choose a configuration file that defines your actual content. Kind of like hello.txt is text file. Hello.csv etc. The file you are passing it is being tagged as plain text. Which not acceptable. I would try exporting the file and making sure the content type is there and looks to be set appropriately.
Just shooting up in the air, but you could try to tag your document with a response.ContentType=
other than text/plain. Sometimes and I am not sure if this is the case, applications can default to text/plain when it's not specified exactly what type of content type to use. Defining it in the document can help. was this one of the samples?
Bob Ferguson selected this answer as the correct answer
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.