We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More

Forum Discussion

Lschoend's avatar
Lschoend
Occasional Contributor
6 years ago
Solved

Need to pass REST parameters from a file

I have a REST API that has three parameters in the URL. http://lelvinv-mgr-test-app.itg.ti.com:8080/data/inventory/generateMaterialInventory?material=&plant=&reelCount=&reelQuantity= I have defin...
  • nmrao's avatar
    nmrao
    6 years ago

    Lschoend 

     

    1. Like it was mentioned earlier, you don't load from properties step

    2. Please see the attached screen shot.

    - Test case has custom property DATA_FILE where you provide the property file name

    - In the setup script, use code from below script

    https://github.com/nmrao/soapUIGroovyScripts/blob/master/groovy/testCaseSetup/LoadPropertiesFromFile.groovy

    - You always run the test case (not individual test step, specially when property file content is changed)