Forum Discussion

anand1's avatar
anand1
Contributor
12 years ago

OAUTH With REST request

Hi,

I have a test case where in I am having two request first one is the Rest based OAUTH request where in I am generating an access token and in the second one is GET request where in I am passing the same token as part of header type variable.
When I am running these two steps individually they are working fine and giving me the expected results, however when I am running it from the Test case level, wherein they should be executed one after the other, i am getting the below mentioned error:

Thu Nov 28 23:22:59 IST 2013:ERROR:Exception during Test Execution
org.apache.xmlbeans.impl.values.XmlValueDisconnectedException
at org.apache.xmlbeans.impl.values.XmlObjectBase.check_orphaned(XmlObjectBase.java:1244)
at com.eviware.soapui.config.impl.PropertyConfigImpl.getName(Unknown Source)
at com.eviware.soapui.impl.wsdl.support.XmlBeansPropertiesTestPropertyHolder$PropertiesStepProperty.getName(XmlBeansPropertiesTestPropertyHolder.java:293)
at com.eviware.soapui.impl.wsdl.support.XmlBeansPropertiesTestPropertyHolder.getPropertyNames(XmlBeansPropertiesTestPropertyHolder.java:186)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlPropertiesTestStep.getPropertyNames(WsdlPropertiesTestStep.java:405)
at com.eviware.soapui.impl.wsdl.panels.teststeps.support.DefaultPropertyTableHolderModel.getPropertyNames(DefaultPropertyTableHolderModel.java:40)
at com.eviware.soapui.impl.wsdl.panels.teststeps.support.DefaultPropertyTableHolderModel.fireTableDataChanged(DefaultPropertyTableHolderModel.java:56)
at com.eviware.soapui.impl.wsdl.panels.teststeps.support.DebugPropertyHolderTable$DebugDefaultPropertyTableHolderModel.clearChanged(SourceFile:160)
at com.eviware.soapui.impl.wsdl.panels.testcase.DebugPropertiesContainerPanel.a(SourceFile:76)
at com.eviware.soapui.impl.wsdl.panels.testcase.DebugPropertiesContainerPanel$1.beforeStep(SourceFile:131)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:233)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:48)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:148)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:43)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Is my request is wrong, seems like that is not the case as it is running fine as an individual step.
kindly advice.

Regards,
Anand
  • Hi Anand,
    This seems like a broken synchronization when a property/parameter is removed. Thanks for reporting this.
    Unfortunately, I was not able to reproduce it.
    Can you please attach the bare minimum project, using which we can reproduce it?

    Best Regards,
    Prakash
    SmartBear Sweden
  • Hi
    I am also facing the same problem. Do you have a solution/workaround ?
    Thanks and Regards
    Smitha
  • Hi Smitha,
    Can you please provide the steps to reproduce it and the SoapUI version you are using?
    It will be really helpful for us to fix this if we can reproduce it.

    Best Regards,
    Prakash
    SmartBear Sweden
  • Hi Prakash
    I am using version 4.5.2 . However i did upgrade but it corrupted by existing test cases so i reverted back to the old testcases
    The issue is not consistently recreated. It is when i add properties to the testsuite to reuse the accessToken/clientCode and then i can't use that testcase even if i delete the newly added properties
    if i create another testcase with the steps copied from the old test and it is OK .

    Thanks and Regards
    Smitha
  • Hi Smitha,

    I am not sure if i understood how to reproduce it correctly. I just tried to have custom property on Test Suite level and tried to use it on test case but could not reproduce the exception you are talking about.

    If you manage to reproduce it or find a specific pattern can you share steps to reproduce?

    Shadid
    SmartBear Sweden