Reputation: 1059
I've been given a basic SoapUI project to run some tests against a mock server. When I import the project into SoapUI, it is greyed out and only gives me an option to reload the project.
When I load up the XML file for the project, it seems to be invalid, but it should still work according to the documentation.
Is there something in the XML I should look out for when importing, or is there a different way to import SoapUI projects other than using the "Import" function?
Upvotes: 0
Views: 9376
Reputation: 1
I recently had a simular problem.
I couldnt even start SoapUI anymore. I found out that the reason was one of the SoapUI projects in my workspace. I removed the project from my workspace-file so I could start SoapUI again.
The project had MQTT teststeps in it. I used an editor to remove the teststeps from the project file. Then I was able to open the project file again.
<con:testStep type="MQTTPublishTestStep" name="Publish using MQTT"/>
<con:testStep type="MQTTDropConnectionTestStep" name="Drop MQTT Connection"/>
<con:testStep type="MQTTReceiveTestStep" name="Receive MQTT Message"/>
Upvotes: 0
Reputation: 1937
If your XML files were packaged into a zip file, there could be artifacts introduced. Look for XML of the form:
<<<<<<< HEAD
<!-- content -->
=======
<!-- duplicated content -->
>>>>>>>
and remove everything except for the first {content} section. Also, be sure to keep any trailing tags after the ">>>>>>".
Upvotes: 0
Reputation: 31
I too faced this problem. The below steps helped me to resolve it:
Click on new Project Tab in SoapUI and create a New Empty Project with default parameters.
Then Right click and choose save project as option, and save it in XML file format.
Then copy entire content of your Old XML projects (which you're not able to open because it is greyed out) and paste it into the XML file saved in step 2 (overwriting all its previous content).
Save the file.
Then import your project with this updated XML file (as its having content of your previous project only, so entire previous project would be restored).
I don't know the logic behind this but this thing worked for me, hence sharing here for everyone's benefit!
Upvotes: 3
Reputation: 3538
There are a couple of things to check:
As a last resort, look through the project file using a text editor. Is it valid XML; is there a junk character in a saved message payload?
Upvotes: 3