diff --git a/Modules/Wrappers/SWIG/test/python/CMakeLists.txt b/Modules/Wrappers/SWIG/test/python/CMakeLists.txt
index c93fb38965b0791888e2c613221c388fd7ea0f77..203a20a6d2eea6eb071ace10275190ca625a7762 100644
--- a/Modules/Wrappers/SWIG/test/python/CMakeLists.txt
+++ b/Modules/Wrappers/SWIG/test/python/CMakeLists.txt
@@ -82,4 +82,5 @@ add_test( NAME pyTvNewStyleParameters
           COMMAND ${TEST_DRIVER} Execute
           ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/PythonNewStyleParametersTest.py
           ${OTB_DATA_ROOT}/Input/poupees.tif
-          ${TEMP}/pyTvNewStyleParametersTest.tif )
+          ${TEMP}/pyTvNewStyleParametersTest.tif
+          ${OTB_DATA_ROOT}/Input/apTvUtSmoothingTest_OutXML.xml)
diff --git a/Modules/Wrappers/SWIG/test/python/PythonNewStyleParametersTest.py b/Modules/Wrappers/SWIG/test/python/PythonNewStyleParametersTest.py
index 9f15b51ec972a06578b4ac2b91f3f52955bcb972..9e05ab4b78ea6fc7d92d295c2dae10272042b22b 100644
--- a/Modules/Wrappers/SWIG/test/python/PythonNewStyleParametersTest.py
+++ b/Modules/Wrappers/SWIG/test/python/PythonNewStyleParametersTest.py
@@ -87,8 +87,8 @@ app.SetParameterString('outputs.mode', 'orthofit')
 cm_assert(app.OUTPUTS.MODE, 'orthofit')
 
 #14 - inputxml parameter set
-app.INXML = 'input.xml'
-cm_assert(app.GetParameterString('inxml'), 'input.xml')
+app.INXML = argv[3]
+cm_assert(app.GetParameterString('inxml'), argv[3])
 
 #15 - outputxml parameter get
 app.SetParameterString('outxml', 'output.xml')