diff --git a/tests/netedit/basic/missing_inputs/additionals.add.xml b/tests/netedit/basic/missing_inputs/additionals.add.xml new file mode 100644 index 00000000000..66e41ceaaf0 --- /dev/null +++ b/tests/netedit/basic/missing_inputs/additionals.add.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/netedit/basic/missing_inputs/errors.netedit b/tests/netedit/basic/missing_inputs/errors.netedit new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/netedit/basic/missing_inputs/errors.neteditcheckoutput b/tests/netedit/basic/missing_inputs/errors.neteditcheckoutput new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/netedit/basic/missing_inputs/gui-settings.xml b/tests/netedit/basic/missing_inputs/gui-settings.xml new file mode 100644 index 00000000000..f24cf89f541 --- /dev/null +++ b/tests/netedit/basic/missing_inputs/gui-settings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/tests/netedit/basic/missing_inputs/guisettingsoutput.netedit b/tests/netedit/basic/missing_inputs/guisettingsoutput.netedit new file mode 100644 index 00000000000..1f3258d2914 --- /dev/null +++ b/tests/netedit/basic/missing_inputs/guisettingsoutput.netedit @@ -0,0 +1,224 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/netedit/basic/missing_inputs/log.netedit b/tests/netedit/basic/missing_inputs/log.netedit new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/netedit/basic/missing_inputs/net.con.xml b/tests/netedit/basic/missing_inputs/net.con.xml new file mode 100644 index 00000000000..07f0ba28741 --- /dev/null +++ b/tests/netedit/basic/missing_inputs/net.con.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/netedit/basic/missing_inputs/net.edg.xml b/tests/netedit/basic/missing_inputs/net.edg.xml new file mode 100644 index 00000000000..324c7dfc368 --- /dev/null +++ b/tests/netedit/basic/missing_inputs/net.edg.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/netedit/basic/missing_inputs/net.net.xml b/tests/netedit/basic/missing_inputs/net.net.xml new file mode 100644 index 00000000000..547b4b79641 --- /dev/null +++ b/tests/netedit/basic/missing_inputs/net.net.xml @@ -0,0 +1,210 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/netedit/basic/missing_inputs/net.netccfg b/tests/netedit/basic/missing_inputs/net.netccfg new file mode 100644 index 00000000000..c5477f11156 --- /dev/null +++ b/tests/netedit/basic/missing_inputs/net.netccfg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + diff --git a/tests/netedit/basic/missing_inputs/net.netedit b/tests/netedit/basic/missing_inputs/net.netedit new file mode 100644 index 00000000000..53aff96457d --- /dev/null +++ b/tests/netedit/basic/missing_inputs/net.netedit @@ -0,0 +1,230 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/netedit/basic/missing_inputs/net.nod.xml b/tests/netedit/basic/missing_inputs/net.nod.xml new file mode 100644 index 00000000000..11e5ec9b882 --- /dev/null +++ b/tests/netedit/basic/missing_inputs/net.nod.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + diff --git a/tests/netedit/basic/missing_inputs/net.tll.xml b/tests/netedit/basic/missing_inputs/net.tll.xml new file mode 100644 index 00000000000..6ead2f893e2 --- /dev/null +++ b/tests/netedit/basic/missing_inputs/net.tll.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/netedit/basic/missing_inputs/netedit.netecfg b/tests/netedit/basic/missing_inputs/netedit.netecfg new file mode 100644 index 00000000000..89b90669b60 --- /dev/null +++ b/tests/netedit/basic/missing_inputs/netedit.netecfg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/netedit/basic/missing_inputs/output.netedit b/tests/netedit/basic/missing_inputs/output.netedit new file mode 100644 index 00000000000..ba08a498528 --- /dev/null +++ b/tests/netedit/basic/missing_inputs/output.netedit @@ -0,0 +1,4 @@ +TestFunctions: Netedit opened successfully +Finding reference +TestFunctions: 'reference.png' found. Position: 304 - 168 +TestFunctions: Netedit closed successfully diff --git a/tests/netedit/basic/missing_inputs/output.neteditcheckoutput b/tests/netedit/basic/missing_inputs/output.neteditcheckoutput new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/netedit/basic/missing_inputs/sumo.sumocfg b/tests/netedit/basic/missing_inputs/sumo.sumocfg new file mode 100644 index 00000000000..78a3dd81464 --- /dev/null +++ b/tests/netedit/basic/missing_inputs/sumo.sumocfg @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/tests/netedit/basic/missing_inputs/test.py b/tests/netedit/basic/missing_inputs/test.py new file mode 100644 index 00000000000..0bd4e46e491 --- /dev/null +++ b/tests/netedit/basic/missing_inputs/test.py @@ -0,0 +1,35 @@ +#!/usr/bin/env python +# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo +# Copyright (C) 2009-2023 German Aerospace Center (DLR) and others. +# This program and the accompanying materials are made available under the +# terms of the Eclipse Public License 2.0 which is available at +# https://www.eclipse.org/legal/epl-2.0/ +# This Source Code may also be made available under the following Secondary +# Licenses when the conditions for such availability set forth in the Eclipse +# Public License 2.0 are satisfied: GNU General Public License, version 2 +# or later which is available at +# https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html +# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later + +# @file test.py +# @author Pablo Alvarez Lopez +# @date 2019-07-16 + +# import common functions for netedit tests +import os +import sys + +testRoot = os.path.join(os.environ.get('SUMO_HOME', '.'), 'tests') +neteditTestRoot = os.path.join( + os.environ.get('TEXTTEST_HOME', testRoot), 'netedit') +sys.path.append(neteditTestRoot) +import neteditTestFunctions as netedit # noqa + +# Open netedit +neteditProcess, referencePosition = netedit.setupAndStart(neteditTestRoot) + +# save Netedit config +netedit.saveNeteditConfig(referencePosition) + +# quit netedit +netedit.quit(neteditProcess) diff --git a/tests/netedit/basic/testsuite.netedit b/tests/netedit/basic/testsuite.netedit index 3400951fb08..757c1a1156b 100644 --- a/tests/netedit/basic/testsuite.netedit +++ b/tests/netedit/basic/testsuite.netedit @@ -12,4 +12,6 @@ modes about_dialog -pyautogui_error \ No newline at end of file +pyautogui_error + +missing_inputs \ No newline at end of file diff --git a/tests/netedit/basic/testsuite.neteditcheckoutput b/tests/netedit/basic/testsuite.neteditcheckoutput index 3400951fb08..757c1a1156b 100644 --- a/tests/netedit/basic/testsuite.neteditcheckoutput +++ b/tests/netedit/basic/testsuite.neteditcheckoutput @@ -12,4 +12,6 @@ modes about_dialog -pyautogui_error \ No newline at end of file +pyautogui_error + +missing_inputs \ No newline at end of file