Forum Discussion

kerberose's avatar
kerberose
Occasional Contributor
12 years ago

Workarounds for REST/POST bug

When editing a REST/POST request in JSON format, if I go somewhere else(e.g. click the from tag) and come back, all JSON format will gone. I even can't save them. I really need this function, otherwise we will have to give up SOAPUI for RESTful testing. Is there any workaround for this since there is no plan for fixing it yet.

Will attaching a file in JSON format work? if so how to do it? or anyway working with the xml file directly and launch the project via command line?
  • kerberose's avatar
    kerberose
    Occasional Contributor
    Thank for quick reply.
    I took a couple of screenshots from SOAPUI Pro 4.5.2 to describe the issue. Please see the attachment.
    My service is based on JSON format only for both request and response.
    Someone said in the email thread that this is a bug. You may wanna search the database to see if it has been reported.
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    I see your problem, but unfortunately I was not been able to reproduce your issue on 4.5.2 linux version. And also we don't have a bug reported for your issue.

    Which os are you running? Can provide us your installation details from Help-> System Properties Menu. In that case, I think it will be easier for us to reproduce the issue.

    Shadid
    SmartBear Sweden.
  • kerberose's avatar
    kerberose
    Occasional Contributor
    Hi,

    This is the system infor:
    "sun.cpu.isalist=amd64
    sun.desktop=windows
    sun.io.unicode.encoding=UnicodeLittle
    sun.java.command=C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\soapUI-Pro-4.5.2.exe
    sun.jnu.encoding=Cp1252
    sun.locale.formatasdefault=true
    sun.management.compiler=HotSpot 64-Bit Tiered Compilers
    sun.os.patch.level=Service Pack 1"


    The system properties is as following:


    JExplorer.runInIsolatedProcess=false

    apple.laf.useScreenMenuBar=true

    awt.toolkit=sun.awt.windows.WToolkit

    com.apple.mrj.application.apple.menu.about.name=SoapUI

    exe4j.consoleCodepage=cp0
    exe4j.isInstall4j=true
    exe4j.launchName=C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\soapUI-Pro-4.5.2.exe
    exe4j.moduleName=C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\soapUI-Pro-4.5.2.exe
    exe4j.semaphoreName=Local\c:_program_files_smartbear_soapui-pro-4.5.2_bin_soapui-pro-4.5.2.exe0
    exe4j.tempDir=
    exe4j.unextractedPosition=0

    file.encoding=Cp1252
    file.encoding.pkg=sun.io
    file.separator=\

    install4j.appDir=C:\Program Files\SmartBear\soapUI-Pro-4.5.2\
    install4j.exeDir=C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\
    install4j.launcherId=376
    install4j.swt=false

    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    java.class.path=C:\Program Files\SmartBear\soapUI-Pro-4.5.2\.install4j\i4jruntime.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\bin\soapui-pro-4.5.2.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\activation-1.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\activeQueryBuilder-activeQueryBuilder.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\axis-ant-protection.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\axis-protection.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\bcmail-jdk14-1.38.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\bcmail-jdk14-138.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\bcprov-jdk14-1.38.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\bcprov-jdk14-138.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\bcprov-jdk15-144.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\bctsp-jdk14-1.38.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\binding-2.0.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\cajo-1.142.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\comfyj-2.9.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\commons-beanutils-1.7.0.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\commons-cli-1.0.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\commons-codec-1.3.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\commons-collections-3.2.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\commons-digester-1.7.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\commons-discovery-0.2.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\commons-httpclient-3.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\commons-io-1.3.2.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\commons-lang-2.4.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\commons-logging-1.1.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\cssparser-0.9.5.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\dom4j-1.6.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\downloader-1.0-SNAPSHOT.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\engine-gecko-3.3.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\engine-gecko15-3.3.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\engine-ie-3.3.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\engine-webkit-3.3.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\ezmorph-1.0.5.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\flex-messaging-common-1.0.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\flex-messaging-core-1.0.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\flex-messaging-opt-1.0.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\flex-messaging-proxy-1.0.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\flex-messaging-remoting-1.0.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\forms-1.0.7.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\groovy-all-1.8.0.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\guava-14.0.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\hamcrest-core-1.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\hermes-1.14.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\htmlunit-2.7.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\htmlunit-core-js-2.7.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\httpclient-4.1.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\httpclient-cache-4.1.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\httpcore-4.1.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\httpcore-nio-4.1.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\httpmime-4.1.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\idw-1.6.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\itext-2.1.7.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\jasperreports-4.0.2.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\jaxen-1.1-beta-8.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\jaxrpc-protection.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\jcalendar-1.3.2.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\jcifs-1.2.9.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\jcommon-1.0.15.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\jdom-1.0.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\jdtcore-3.1.0.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\jetty-6.1.26.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\jetty-util-6.1.26.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\jfreechart-1.0.12.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\jhall-protection.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\jms-1.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\jniwrap-3.8.4.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\joda-time-1.6.2.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\js-1.7R2.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\json-lib-2.2.2-jdk15.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\jsr173_api-1.0.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\jtidy-r872-jdk15.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\jug-protection.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\junit-4.10.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\jxbrowser-3.3.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\jxl-2.6.12.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\l2fprod-common-directorychooser-7.3.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\l2fprod-common-fontchooser-7.3.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\license4j-1.3.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\log4j-1.2.14.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\looks-2.2.0.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\mail-1.4.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\maven-plugin-api-2.0.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\mockito-all-1.8.5.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\MozillaInterfaces-3.0.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\nekohtml-1.9.14.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\netcomponents-1.3.8a.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\not-yet-commons-ssl-0.3.11.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\opencsv-1.8.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\opensaml-2.4.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\openws-1.4.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\Protection-4.6.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\ProtectionHelp-4.6.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\ProtectionPriv-4.6.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\reports-1.0.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\rsyntaxtextarea-2.0.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\sac-1.3.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\saxon-9.1.0.8j.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\saxon-dom-9.1.0.8j.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\serializer-2.7.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\servlet-api-2.5-20081211.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\slf4j-api-1.6.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\soapui-4.5.2.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\swingx-soapui.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\winpack-3.8.3.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\ws-commons-util-1.0.2.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\wsdl4j-1.6.2-fixed.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\wss4j-1.6.2.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\xalan-2.7.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\xbean-fixed-2.4.0.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\xbean_xpath-2.4.0.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\xercesImpl-2.9.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\xml-apis-1.0.b2.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\xml-apis-2.9.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\xmlParserAPIs-2.6.2.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\xmlpublic-2.4.0.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\xmlsec-1.4.5.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\xmltooling-1.3.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\xmlunit-1.2.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\xom-1.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\xstream-1.3.1.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\xulrunner-windows-3.3.jar;C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\..\lib\xulrunner15-windows-3.3.jar;
    java.class.version=51.0
    java.endorsed.dirs=c:\program files\smartbear\soapui-pro-4.5.2\jre\lib\endorsed
    java.ext.dirs=c:\program files\smartbear\soapui-pro-4.5.2\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
    java.home=c:\program files\smartbear\soapui-pro-4.5.2\jre
    java.io.tmpdir=C:\Users\holiao\AppData\Local\Temp\
    java.library.path=C:\Program Files\SmartBear\soapUI-Pro-4.5.2/bin
    java.rmi.server.hostname=0.0.0.0
    java.rmi.server.useCodebaseOnly=true
    java.runtime.name=Java(TM) SE Runtime Environment
    java.runtime.version=1.7.0_15-b03
    java.security.policy=server.policy
    java.specification.name=Java Platform API Specification
    java.specification.vendor=Oracle Corporation
    java.specification.version=1.7
    java.util.Arrays.useLegacyMergeSort=true
    java.vendor=Oracle Corporation
    java.vendor.url=http://java.oracle.com/
    java.vendor.url.bug=http://bugreport.sun.com/bugreport/
    java.version=1.7.0_15
    java.vm.info=mixed mode
    java.vm.name=Java HotSpot(TM) 64-Bit Server VM
    java.vm.specification.name=Java Virtual Machine Specification
    java.vm.specification.vendor=Oracle Corporation
    java.vm.specification.version=1.7
    java.vm.vendor=Oracle Corporation
    java.vm.version=23.7-b01

    jxbrowser.xulrunner.dir=C:\Program Files\SmartBear\soapUI-Pro-4.5.2\.JxBrowser

    line.separator=


    os.arch=amd64
    os.name=Windows 7
    os.version=6.1

    path.separator=;

    soapui.ext.actions=C:\Program Files\SmartBear\soapUI-Pro-4.5.2/bin/actions
    soapui.ext.libraries=C:\Program Files\SmartBear\soapUI-Pro-4.5.2/bin/ext
    soapui.ext.listeners=C:\Program Files\SmartBear\soapUI-Pro-4.5.2/bin/listeners
    soapui.home=C:\Program Files\SmartBear\soapUI-Pro-4.5.2/bin
    soapui.properties=soapui.properties

    sun.arch.data.model=64
    sun.awt.enableExtraMouseButtons=true
    sun.boot.class.path=c:\program files\smartbear\soapui-pro-4.5.2\jre\lib\resources.jar;c:\program files\smartbear\soapui-pro-4.5.2\jre\lib\rt.jar;c:\program files\smartbear\soapui-pro-4.5.2\jre\lib\sunrsasign.jar;c:\program files\smartbear\soapui-pro-4.5.2\jre\lib\jsse.jar;c:\program files\smartbear\soapui-pro-4.5.2\jre\lib\jce.jar;c:\program files\smartbear\soapui-pro-4.5.2\jre\lib\charsets.jar;c:\program files\smartbear\soapui-pro-4.5.2\jre\lib\jfr.jar;c:\program files\smartbear\soapui-pro-4.5.2\jre\classes
    sun.boot.library.path=c:\program files\smartbear\soapui-pro-4.5.2\jre\bin
    sun.cpu.endian=little
    sun.cpu.isalist=amd64
    sun.desktop=windows
    sun.io.unicode.encoding=UnicodeLittle
    sun.java.command=C:\Program Files\SmartBear\soapUI-Pro-4.5.2\bin\soapUI-Pro-4.5.2.exe
    sun.jnu.encoding=Cp1252
    sun.locale.formatasdefault=true
    sun.management.compiler=HotSpot 64-Bit Tiered Compilers
    sun.os.patch.level=Service Pack 1



    wsi.dir=C:\Program Files\SmartBear\soapUI-Pro-4.5.2/wsi-test-tools
  • kerberose's avatar
    kerberose
    Occasional Contributor
    hi,

    Any updates on this one? Is the property info helpful for reproducing the issue?
    Please let me know.

    Thanks.
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi again,

    No actually I could not reproduce your problem on windows 64 either. I am wondering if it has anything to do with your project. Is it possible to share a sample project with what we can reproduce the issue?

    //Shadid
    SmartBear Sweden
  • kerberose's avatar
    kerberose
    Occasional Contributor
    I don't think it's a project related issue because the free version of SOAPUI does NOT have this issue. But I will need the data driven feature and we paid for that. We can't provide a sample project for now, but what number can I call for discussing more technical details?
    Thanks,
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    I am sorry but I have also tested this and could not reproduce this problem with SoapUI 4.5.2.

    In your screenshot, it seems you have a complex form, which comes from your WADL probably. That may be causing the problem. The WADL I used to test this is fairly simple.
    Can you provide us with a similar WADL (you can remove sensitive information and just leave enough for the problem to still be present) so we can try it in our tests?

    Also, if you want to attach a JSON file (or any file) to your POST (or PUT) request, you can just set Media Type to "multipart/form-data" and then add the files in the Attachments tab. The file will be sent in the body of the message (if you use encryption, it will be encrypted).

    Regards,

    Renato
    SmartBear Software