svanoort / pyresttest

Python Rest Testing
Apache License 2.0
1.15k stars 325 forks source link

Invalid configuration for content while running below code #251

Open mravitej opened 7 years ago

mravitej commented 7 years ago

I didn't figure out the issue could someone please help me out

output: Traceback (most recent call last): File "/usr/local/bin/pyresttest", line 5, in pkg_resources.run_script('pyresttest==1.7.2.dev', 'pyresttest') File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1394, in run_script execfile(script_filename, namespace, namespace) File "/usr/local/lib/python2.7/dist-packages/pyresttest-1.7.2.dev-py2.7.egg/EGG-INFO/scripts/pyresttest", line 4, in resttest.command_line_run(sys.argv[1:]) File "/usr/local/lib/python2.7/dist-packages/pyresttest-1.7.2.dev-py2.7.egg/pyresttest/resttest.py", line 1090, in command_line_run main(args) File "/usr/local/lib/python2.7/dist-packages/pyresttest-1.7.2.dev-py2.7.egg/pyresttest/resttest.py", line 1009, in main working_directory=os.path.dirname(test_file), vars=my_vars) File "/usr/local/lib/python2.7/dist-packages/pyresttest-1.7.2.dev-py2.7.egg/pyresttest/resttest.py", line 255, in parse_testsets mytest = Test.parse_test(base_url, child) File "/usr/local/lib/python2.7/dist-packages/pyresttest-1.7.2.dev-py2.7.egg/pyresttest/tests.py", line 461, in parse_test if use_config_parser(mytest, configelement, configvalue): File "/usr/local/lib/python2.7/dist-packages/pyresttest-1.7.2.dev-py2.7.egg/pyresttest/tests.py", line 454, in use_config_parser converted = myparsing0 File "/usr/local/lib/python2.7/dist-packages/pyresttest-1.7.2.dev-py2.7.egg/pyresttest/contenthandling.py", line 148, in parse_content raise Exception("Invalid configuration for content.") Exception: Invalid configuration for content.

mvitiuk commented 7 years ago

I have it like this:

don't know is it matters or not, but my variables are inside 'value'