aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Kroemeke <skroemeke@luxoft.com>2019-02-15 14:55:45 +0100
committerBramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>2019-02-18 06:33:45 +0000
commit1fd7bbda5e37cc960966c68ca744f9f9cd346f0c (patch)
tree8fe41f28ee0b20421365c8d53b1689051aabbac8
parent82d732323330e6b2d57ca4edc752d78eaf0748b3 (diff)
[squish] remove run environment test
The run environment test has no value in a release, and didn't serve well enough for debugging information. It can removed. Change-Id: I24b27b67a48cd086e2f94620b0d29561f6c792e2 Reviewed-by: Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>
-rw-r--r--squishtests/suite_neptune3/suite.conf2
-rw-r--r--squishtests/suite_neptune3/tst_environment_info/steps/environment.py110
-rw-r--r--squishtests/suite_neptune3/tst_environment_info/test.feature35
-rw-r--r--squishtests/suite_neptune3/tst_environment_info/test.py44
4 files changed, 1 insertions, 190 deletions
diff --git a/squishtests/suite_neptune3/suite.conf b/squishtests/suite_neptune3/suite.conf
index f8b5605c..2c88c8ad 100644
--- a/squishtests/suite_neptune3/suite.conf
+++ b/squishtests/suite_neptune3/suite.conf
@@ -6,6 +6,6 @@ IMPLICITAUTSTART=0
LANGUAGE=Python
OBJECTMAP=./shared/objects.map
OBJECTMAPSTYLE=script
-TEST_CASES=tst_environment_info tst_home_screen tst_volume tst_launcher tst_app_common tst_app_calendar
+TEST_CASES=tst_home_screen tst_volume tst_launcher tst_app_common tst_app_calendar
VERSION=3
WRAPPERS=Qt
diff --git a/squishtests/suite_neptune3/tst_environment_info/steps/environment.py b/squishtests/suite_neptune3/tst_environment_info/steps/environment.py
deleted file mode 100644
index d1d1845c..00000000
--- a/squishtests/suite_neptune3/tst_environment_info/steps/environment.py
+++ /dev/null
@@ -1,110 +0,0 @@
-# -*- coding: utf-8 -*-
-
-############################################################################
-##
-## Copyright (C) 2019 Luxoft Sweden AB
-## Copyright (C) 2018 Pelagicore AG
-## Contact: https://www.qt.io/licensing/
-##
-## This file is part of the Neptune 3 IVI UI.
-##
-## $QT_BEGIN_LICENSE:GPL-QTAS$
-## Commercial License Usage
-## Licensees holding valid commercial Qt Automotive Suite licenses may use
-## this file in accordance with the commercial license agreement provided
-## with the Software or, alternatively, in accordance with the terms
-## contained in a written agreement between you and The Qt Company. For
-## licensing terms and conditions see https://www.qt.io/terms-conditions.
-## For further information use the contact form at https://www.qt.io/contact-us.
-##
-## GNU General Public License Usage
-## Alternatively, this file may be used under the terms of the GNU
-## General Public License version 3 or (at your option) any later version
-## approved by the KDE Free Qt Foundation. The licenses are as published by
-## the Free Software Foundation and appearing in the file LICENSE.GPL3
-## included in the packaging of this file. Please review the following
-## information to ensure the GNU General Public License requirements will
-## be met: https://www.gnu.org/licenses/gpl-3.0.html.
-##
-## $QT_END_LICENSE$
-##
-## SPDX-License-Identifier: GPL-3.0
-##
-#############################################################################
-
-import os
-import sys
-
-
-@OnFeatureStart
-def hook(context):
- pass
-
-
-@Then("return python info")
-def step(context):
- test.log("Python Version is "
- + str(sys.version_info.major) + "."
- + str(sys.version_info.minor) + "."
- + str(sys.version_info.micro) + " ("
- + str(sys.version_info.releaselevel) + ")!")
- #test.log("Python pathVersion is :"+ str(sys.path))
- test.log("Python's 'exec_prefix' is :" + str(sys.exec_prefix))
- test.log(" 'sys.prefix' is :" + str(sys.prefix))
- test.log(" 'sys.platform' is :" + str(sys.platform))
- test.log(" 'sys.api_version' is :" + str(sys.api_version))
-
- test.log(" 'sys.path' is:")
- for el in sys.path:
- test.log(" '" + str(el) + "'")
-
- test.log(" 'sys.path_importer_cache' is:")
- for el in sys.path_importer_cache:
- test.log(" '" + str(el) + "'")
-
- test.log(" 'sys.path_hooks' are:")
- for el in sys.path_hooks:
- try:
- test.log(" '" + str(el) + "'")
- except ImportError as e:
- test.log(str(e))
-
-
-'''
- Reads the given environment variable provided.
- If the 2nd argument is
- 'set' this must be empty or it will fail
- 'empty' this var must be empty or it will fail
- 'info' this will just print out the var
- any var will be checked that 1st argument var matches 2nd argument
-
- https://stackoverflow.com/questions/4906977/how-do-i-access-environment-variables-from-python
-'''
-@Given("show the environment var '|word|' which might be '|word|'")
-def step(context, path, state):
- try:
- os_path = os.environ.get(path)
- #os_path = os.getenv(path)
- except KeyError as e:
- test.fail(str(e) + " but needs to be in the list here: "
- + str(os.environ))
- else:
- if state == 'set':
- if os_path:
- test.log("Good '" + path + "' it is '" + str(os_path) + "'!")
- else:
- test.fail("Bad '" + path + "' it is not set!")
- elif state == 'empty':
- if os_path:
- test.fail("Bad '" + path + "' is '" + str(os_path)
- + "' but should not be empty!")
- else:
- test.log("Good '" + path + "' is not set!")
- elif state == 'info':
- test.log("Info: '" + path + "' is '" + str(os_path) + "'!")
- else:
- if os_path == state:
- test.log("Good '" + path + "' it is '" + str(os_path) + "'!")
- else:
- test.fail("Bad '" + path + "' it is '" + str(os_path)
- + "' instead of '" + state + "'!")
diff --git a/squishtests/suite_neptune3/tst_environment_info/test.feature b/squishtests/suite_neptune3/tst_environment_info/test.feature
deleted file mode 100644
index 6dc4208a..00000000
--- a/squishtests/suite_neptune3/tst_environment_info/test.feature
+++ /dev/null
@@ -1,35 +0,0 @@
-Feature: A small introspection into the testing environment
-
- This is just to perform some test about environment
- variables and more except from thos in
- https://doc.froglogic.com/squish/latest/rg-envvars.html
-
- This should help to find out about bugs and problems
- regarding the test and the to be attaching application.
-
- ACTUALLY THIS DOES NOT DO what it is supposed to do,
- it should have read, test and log the values FROM
- the TEST SYSTEM (aka SQUISH SERVER) BUT unfortunately
- it DOES NOT, but from the system calling it (SQUISH RUNNER).
-
- Scenario: Retrieve python information
- Given nothing
- Then return python info
-
- Scenario Outline: Show all relevant path
- Given show the environment var '<paths>' which might be '<result>'
-
- Examples:
- | paths | result |
- | HOME | info |
- | USER | info |
- | QT_IM_MODULE | info |
- | LD_LIBRARY_PATH | set |
- | PATH | set |
- | PREFIX | info |
- | SQUISHRUNNER_PORT | info |
- | LC_ADDRESS | info |
- | LC_NAME | info |
- | LC_NUMERIC | info |
- | LC_MEASUREMENT | set |
- | LC_IDENTIFICATION | set |
diff --git a/squishtests/suite_neptune3/tst_environment_info/test.py b/squishtests/suite_neptune3/tst_environment_info/test.py
deleted file mode 100644
index 53e5d84a..00000000
--- a/squishtests/suite_neptune3/tst_environment_info/test.py
+++ /dev/null
@@ -1,44 +0,0 @@
-# -*- coding: utf-8 -*-
-
-############################################################################
-##
-## Copyright (C) 2019 Luxoft Sweden AB
-## Copyright (C) 2018 Pelagicore AG
-## Contact: https://www.qt.io/licensing/
-##
-## This file is part of the Neptune 3 IVI UI.
-##
-## $QT_BEGIN_LICENSE:GPL-QTAS$
-## Commercial License Usage
-## Licensees holding valid commercial Qt Automotive Suite licenses may use
-## this file in accordance with the commercial license agreement provided
-## with the Software or, alternatively, in accordance with the terms
-## contained in a written agreement between you and The Qt Company. For
-## licensing terms and conditions see https://www.qt.io/terms-conditions.
-## For further information use the contact form at https://www.qt.io/contact-us.
-##
-## GNU General Public License Usage
-## Alternatively, this file may be used under the terms of the GNU
-## General Public License version 3 or (at your option) any later version
-## approved by the KDE Free Qt Foundation. The licenses are as published by
-## the Free Software Foundation and appearing in the file LICENSE.GPL3
-## included in the packaging of this file. Please review the following
-## information to ensure the GNU General Public License requirements will
-## be met: https://www.gnu.org/licenses/gpl-3.0.html.
-##
-## $QT_END_LICENSE$
-##
-## SPDX-License-Identifier: GPL-3.0
-##
-#############################################################################
-
-source(findFile('scripts', 'python/bdd.py'))
-source(findFile('scripts', '../shared/scripts/common/__init__.py'))
-
-setupHooks('../shared/scripts/bdd_hooks.py')
-collectStepDefinitions('./steps', '../shared/steps')
-
-
-def main():
- testSettings.throwOnFailure = True
- runFeatureFile('test.feature')