Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Sep 19, 2024
1 parent 4160bdd commit 8c8158f
Show file tree
Hide file tree
Showing 17,564 changed files with 1,057,000 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-07-22 14:10:19 by Eclipse SUMO netedit Version v1_20_0+1736-e39e4a74e3e
This data file and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
This file 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
-->

<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd">
<!-- StoppingPlaces -->
<busStop id="busStopA" lane="Edge2_1" startPos="46.00" endPos="56.00"/>
<busStop id="busStopB" name="i" lane="EdgeCenter1_1" startPos="24.18" endPos="31.09"/>
<trainStop id="trainStopA" lane="Edge2_1" startPos="2.00" endPos="12.00"/>
<trainStop id="trainStopB" name="m" lane="EdgeCenter0_1" startPos="6.05" endPos="12.95"/>
<containerStop id="containerStopA" lane="Edge2_1" startPos="34.00" endPos="44.00"/>
<containerStop id="containerStopB" lane="EdgeCenter1_1" startPos="10.36" endPos="20.73"/>
<chargingStation id="chargingStationA" lane="Edge2_1" startPos="13.00" endPos="21.00"/>
<chargingStation id="chargingStationB" lane="EdgeCenter1_1" startPos="34.42" endPos="41.58"/>
<parkingArea id="parkingAreaA" lane="Edge2_1" startPos="22.00" endPos="32.00"/>
<parkingArea id="parkingAreaB" lane="EdgeCenter0_1" startPos="16.41" endPos="26.77"/>
<!-- Detectors -->
<inductionLoop id="e1_0" lane="Edge4_1" pos="3.00" period="300.00" file="e1_0.xml"/>
<inductionLoop id="e1_1" lane="Edge1_1" pos="27.00" period="300.00" file="e1_1.xml"/>
<!-- TAZs -->
<taz id="taz_green" shape="8.00,10.00 8.00,-10.00 -4.00,-10.00 -4.00,10.00 8.00,10.00" center="6.00,0.00" fill="1" color="green">
<tazSource id="Edge2" weight="1.00"/>
<tazSink id="Edge2" weight="1.00"/>
<tazSource id="Edge3" weight="1.00"/>
<tazSink id="Edge3" weight="1.00"/>
</taz>
<taz id="taz_red" shape="20.00,10.00 20.00,-10.00 42.00,-10.00 42.00,10.00 20.00,10.00" center="22.00,0.00" fill="1" color="red">
<tazSource id="Edge0" weight="1.00"/>
<tazSink id="Edge0" weight="1.00"/>
<tazSource id="Edge5" weight="1.00"/>
<tazSink id="Edge5" weight="1.00"/>
</taz>
</additional>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-07-22 14:10:19 by Eclipse SUMO netedit Version v1_20_0+1736-e39e4a74e3e
This data file and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
This file 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
-->

<data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/datamode_file.xsd">
<interval id="dataSet" begin="0.00" end="3600.00">
<edge id="Edge0"/>
<edge id="Edge1"/>
<edge id="Edge2"/>
<edge id="Edge3"/>
<edge id="Edge4"/>
<edge id="Edge5"/>
</interval>
</data>
Empty file.

Large diffs are not rendered by default.

Empty file.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
TestFunctions: Netedit opened successfully
Finding reference
TestFunctions: 'reference.png' found. Position: 304 - 168
walk
TestFunctions: Clicked over position 685 - 611
TestFunctions: Clicked over position 600 - 179
personTrip
TestFunctions: Clicked over position 644 - 368
custom group
TestFunctions: Clicked over position 304 - 168
TestFunctions: Clicked over position 304 - 168
TestFunctions: Netedit closed successfully
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-09-11 09:51:36 by Eclipse SUMO netedit Version v1_20_0+1946-1ac0654adcb
This data file and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
This file 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
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<!-- Vehicles, persons and containers (sorted by depart) -->
<person id="p_0" depart="0.00">
<walk from="Edge0" busStop="busStopA"/>
<personTrip busStop="busStopB" group="custom group"/>
</person>
</routes>
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
#!/usr/bin/env python
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
# Copyright (C) 2009-2024 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)

# go to demand mode
netedit.supermodeDemand()

# go to person mode
netedit.personMode()

# change person plan
netedit.changePersonPlan("walk", False)

# create route using one edge
netedit.leftClick(referencePosition, netedit.positions.elements.edge0)
netedit.leftClick(referencePosition, netedit.positions.elements.demands.busStop)

# press enter to create route
netedit.typeEnter()

# go to personTrip.busStop.busStop mode
netedit.personPlanMode()

# go to personTrip.busStop.busStop mode
netedit.changePersonPlanMode("personTrip")

# create personTrip.busStop.busStop
netedit.leftClick(referencePosition, netedit.positions.elements.demands.busStopB)

# set invalid person number
netedit.changeDefaultValue(netedit.attrs.personTrip.busStop.busStop.create.group, "custom group")

# press enter to create route
netedit.typeEnter()

# Check undo redo
netedit.checkUndoRedo(referencePosition)

# save Netedit config
netedit.saveNeteditConfig(referencePosition)

# quit netedit
netedit.quit(neteditProcess)
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-07-22 14:10:19 by Eclipse SUMO netedit Version v1_20_0+1736-e39e4a74e3e
This data file and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
This file 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
-->

<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd">
<!-- StoppingPlaces -->
<busStop id="busStopA" lane="Edge2_1" startPos="46.00" endPos="56.00"/>
<busStop id="busStopB" name="i" lane="EdgeCenter1_1" startPos="24.18" endPos="31.09"/>
<trainStop id="trainStopA" lane="Edge2_1" startPos="2.00" endPos="12.00"/>
<trainStop id="trainStopB" name="m" lane="EdgeCenter0_1" startPos="6.05" endPos="12.95"/>
<containerStop id="containerStopA" lane="Edge2_1" startPos="34.00" endPos="44.00"/>
<containerStop id="containerStopB" lane="EdgeCenter1_1" startPos="10.36" endPos="20.73"/>
<chargingStation id="chargingStationA" lane="Edge2_1" startPos="13.00" endPos="21.00"/>
<chargingStation id="chargingStationB" lane="EdgeCenter1_1" startPos="34.42" endPos="41.58"/>
<parkingArea id="parkingAreaA" lane="Edge2_1" startPos="22.00" endPos="32.00"/>
<parkingArea id="parkingAreaB" lane="EdgeCenter0_1" startPos="16.41" endPos="26.77"/>
<!-- Detectors -->
<inductionLoop id="e1_0" lane="Edge4_1" pos="3.00" period="300.00" file="e1_0.xml"/>
<inductionLoop id="e1_1" lane="Edge1_1" pos="27.00" period="300.00" file="e1_1.xml"/>
<!-- TAZs -->
<taz id="taz_green" shape="8.00,10.00 8.00,-10.00 -4.00,-10.00 -4.00,10.00 8.00,10.00" center="6.00,0.00" fill="1" color="green">
<tazSource id="Edge2" weight="1.00"/>
<tazSink id="Edge2" weight="1.00"/>
<tazSource id="Edge3" weight="1.00"/>
<tazSink id="Edge3" weight="1.00"/>
</taz>
<taz id="taz_red" shape="20.00,10.00 20.00,-10.00 42.00,-10.00 42.00,10.00 20.00,10.00" center="22.00,0.00" fill="1" color="red">
<tazSource id="Edge0" weight="1.00"/>
<tazSink id="Edge0" weight="1.00"/>
<tazSource id="Edge5" weight="1.00"/>
<tazSink id="Edge5" weight="1.00"/>
</taz>
</additional>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-07-22 14:10:19 by Eclipse SUMO netedit Version v1_20_0+1736-e39e4a74e3e
This data file and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
This file 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
-->

<data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/datamode_file.xsd">
<interval id="dataSet" begin="0.00" end="3600.00">
<edge id="Edge0"/>
<edge id="Edge1"/>
<edge id="Edge2"/>
<edge id="Edge3"/>
<edge id="Edge4"/>
<edge id="Edge5"/>
</interval>
</data>
Empty file.
Loading

0 comments on commit 8c8158f

Please sign in to comment.