DE102021109133A1 - Method and device for creating test cases for a test system - Google Patents

Method and device for creating test cases for a test system Download PDF

Info

Publication number
DE102021109133A1
DE102021109133A1 DE102021109133.0A DE102021109133A DE102021109133A1 DE 102021109133 A1 DE102021109133 A1 DE 102021109133A1 DE 102021109133 A DE102021109133 A DE 102021109133A DE 102021109133 A1 DE102021109133 A1 DE 102021109133A1
Authority
DE
Germany
Prior art keywords
test
test system
learning algorithm
features
cases
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
DE102021109133.0A
Other languages
German (de)
Inventor
Indrasen Raghupatruni
Jonas Maciejewski
Thomas Huber
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Robert Bosch GmbH
Original Assignee
Robert Bosch GmbH
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Robert Bosch GmbH filed Critical Robert Bosch GmbH
Priority to DE102021109133.0A priority Critical patent/DE102021109133A1/en
Publication of DE102021109133A1 publication Critical patent/DE102021109133A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers

Abstract

Verfahren (10) zum Erstellen von Testfällen (3c) für ein Testsystem (1a), gekennzeichnet durch folgende Merkmale:- Anforderungen (1) an das Testsystem (1a) werden gemäß einem ersten Lernalgorithmus (2) anhand eines Korpus (2a) in Testszenarien umgewandelt,- aus den Testszenarien werden gemäß einem zweiten Lernalgorithmus (3) anhand von vorgegebenen Randbedingungen (3a) in einem vorgegebenen Prüfrahmen (3b) die Testfälle (3c) erstellt und- gemäß einem dritten Lernalgorithmus (4) wird aus Merkmalen des Testsystems (1a) eine erste Merkmalsmatrix (4a) gebildet, welche in den Korpus (2a) aufgenommen (11) wird.Method (10) for creating test cases (3c) for a test system (1a), characterized by the following features: - Requirements (1) for the test system (1a) are based on a corpus (2a) in test scenarios according to a first learning algorithm (2). converted,- the test cases (3c) are created from the test scenarios according to a second learning algorithm (3) using predetermined boundary conditions (3a) in a predetermined test framework (3b) and- according to a third learning algorithm (4), characteristics of the test system (1a ) formed a first feature matrix (4a), which is included (11) in the body (2a).

Description

Die vorliegende Erfindung betrifft ein Verfahren zum Erstellen von Testfällen für ein Testsystem. Die vorliegende Erfindung betrifft darüber hinaus eine entsprechende Vorrichtung, ein entsprechendes Computerprogramm sowie ein Speichermedium.The present invention relates to a method for creating test cases for a test system. The present invention also relates to a corresponding device, a corresponding computer program and a storage medium.

Stand der TechnikState of the art

Insbesondere eingebettete Systeme (embedded systems) sind auf schlüssige Eingangssignale von Sensoren angewiesen und stimulieren wiederum ihre Umwelt durch Ausgangssignale an unterschiedlichste Aktoren. Im Zuge der Verifikation und vorgelagerter Entwicklungsphasen eines solchen Systems wird daher in einer Regelschleife dessen Software (software in the loop, SiL), Prozessor (processor in the loop, PiL) oder gesamte Hardware (hardware in the loop, HiL) gemeinsam mit einem Modell der Umgebung simuliert. In der Fahrzeugtechnik werden diesem Prinzip entsprechende Simulatoren zur Prüfung elektronischer Steuergeräte je nach Testphase und -objekt mitunter als Komponenten-, Modul- oder Integrationsprüfstände bezeichnet.Embedded systems in particular are dependent on coherent input signals from sensors and in turn stimulate their environment through output signals to a wide variety of actuators. In the course of the verification and upstream development phases of such a system, its software (software in the loop, SiL), processor (processor in the loop, PiL) or entire hardware (hardware in the loop, HiL) are combined with a model in a control loop simulated in the environment. In automotive engineering, simulators for testing electronic control units based on this principle are sometimes referred to as component, module or integration test benches, depending on the test phase and object.

DE 10 2019 212458 offenbart ein computerimplementiertes Verfahren zum Testen eines Systems auf mindestens eine Anforderung. Das System umfasst dabei insbesondere ein Computerprogramm, eine Hardware oder ein eingebettetes System. Besonders vorteilhaft kann das Verfahren eingesetzt werden, wenn das getestete System ein Teilsystem eines zumindest teilautonomen Fahrzeugs oder eines zumindest teilautonomen Roboters ist oder dass das getestete System ein zumindest teilautonomes Fahrzeug oder ein zumindest teilautonomer Roboter ist. Die Anforderung umfasst dabei insbesondere eine funktionale oder leistungsbezogene Anforderung oder eine Anforderung an die funktionale Sicherheit des Systems bei dessen (tatsächlicher) Ausführung. In dem vorgestellten Verfahren wird die Anforderung in maschinenlesbarer Form empfangen. Für den Test des Systems auf die empfangene Anforderung wird mindestens eine erste Eingangsgröße ermittelt und eine Ausführung des Systems wird abhängig von der ermittelten ersten Eingangsgröße simuliert. Weiterhin wird eine Ausgangsgröße des simulierten Systems ermittelt und abhängig von der Ausgangsgröße ermittelt, ob das System die Anforderung erfüllt. Ferner wird überprüft, ob die Simulation eine Qualitätsanforderung erfüllt. Die Überprüfung umfasst dabei insbesondere eine Prüfung, ob die Simulation einen zulässigen Parameterbereich verlässt oder vorbestimmte Randbedingungen verletzt oder ob für die Simulation nötige Modelle oder Teilmodelle verfügbar sind. Falls die Simulation die Qualitätsanforderung erfüllt und das System die Anforderung erfüllt, wird in dem vorgestellten Verfahren überprüft, ob für die Anforderung eine ausreichende Testabdeckung erreicht ist. Ist die ausreichende Testabdeckung für die Anforderung erreicht, wird der Test für die Anforderung abgeschlossen. DE 10 2019 212458 discloses a computer-implemented method for testing a system for at least one requirement. The system includes in particular a computer program, hardware or an embedded system. The method can be used particularly advantageously if the tested system is a subsystem of an at least partially autonomous vehicle or an at least partially autonomous robot or that the tested system is an at least partially autonomous vehicle or an at least partially autonomous robot. The requirement includes in particular a functional or performance-related requirement or a requirement for the functional safety of the system during its (actual) execution. In the method presented, the request is received in machine-readable form. At least one first input variable is determined to test the system for the received request, and an execution of the system is simulated as a function of the first input variable determined. Furthermore, an output variable of the simulated system is determined and, depending on the output variable, it is determined whether the system meets the requirement. It is also checked whether the simulation meets a quality requirement. In this case, the check includes in particular a check as to whether the simulation leaves a permissible parameter range or violates predetermined boundary conditions or whether models or partial models required for the simulation are available. If the simulation meets the quality requirement and the system meets the requirement, the procedure presented checks whether sufficient test coverage has been achieved for the requirement. If the test coverage for the requirement is sufficient, the test for the requirement is completed.

Offenbarung der ErfindungDisclosure of Invention

Die Erfindung stellt ein Verfahren zum Erstellen von Testfällen für ein Testsystem, eine entsprechende Vorrichtung, ein entsprechendes Computerprogramm sowie ein Speichermedium gemäß den unabhängigen Ansprüchen bereit.The invention provides a method for creating test cases for a test system, a corresponding device, a corresponding computer program and a storage medium according to the independent claims.

Ein Vorzug der nachfolgend vorgestellten Lösung liegt darin, dass es die Merkmale des zu testenden Systems berücksichtigt, um die Durchführung von Tests zu optimieren.An advantage of the solution presented below is that it takes into account the characteristics of the system under test in order to optimize the test execution.

Durch die in den abhängigen Ansprüchen aufgeführten Maßnahmen sind vorteilhafte Weiterbildungen und Verbesserungen des im unabhängigen Anspruch angegebenen Grundgedankens möglich. So kann vorgesehen sein, dass mittels einschlägiger Algorithmen aus dem Bereich des überwachten Lernens (supervised learning) aus den Merkmalen von Testsystem und -fällen Merkmalsmatrizen gebildet und anhand letzterer die Testfälle in Klassen eingeteilt werden. Dies ermöglicht eine automatische Klasseneinteilung der Testfälle für das jeweilige Testsystem - etwa ein HiL-, SiL-, PiL-System oder vollständiges Fahrzeug - unter Berücksichtigung funktionaler und nicht-funktionaler Systemanforderungen. Diese Einteilung unterstützt sowohl eine systematische Auswertung der Testergebnisse als auch eine Verbesserung der Eigenschaften des Testsystems.Advantageous further developments and improvements of the basic idea specified in the independent claim are possible as a result of the measures listed in the dependent claims. Provision can thus be made for feature matrices to be formed from the features of the test system and test cases using relevant algorithms from the field of supervised learning, and for the test cases to be divided into classes on the basis of the latter. This enables an automatic classification of the test cases for the respective test system - such as a HiL, SiL, PiL system or a complete vehicle - taking into account functional and non-functional system requirements. This classification supports both a systematic evaluation of the test results and an improvement in the properties of the test system.

Gemäß einem weiteren Aspekt kann vorgesehen sein, dass die Klasseneinteilung zur Auswahl von Testfällen für das Testsystem herangezogen wird. Dies verbessert die Effizienz eines kontinuierlichen Tests, da die für das jeweilige Testsystem aussagekräftigsten Testfälle selbsttätig zugeordnet werden können.According to a further aspect, provision can be made for the classification to be used to select test cases for the test system. This improves the efficiency of a continuous test, since the test cases that are most meaningful for the respective test system can be assigned automatically.

Gemäß einem weiteren Aspekt kann vorgesehen sein, dass anhand der Testergebnisse die Güte des jeweiligen Testsystems gemessen wird. Auf diese Weise lässt sich für jeden der ausgewählten Testfälle eine Aussage über die Eignung unterschiedlicher Testsysteme treffen, etwa dahingehend, dass ein bestimmter Fall besser in einer HiL- als in einer SiL-Umgebung getestet werden sollte.According to a further aspect, it can be provided that the quality of the respective test system is measured on the basis of the test results. In this way, a statement about the suitability of different test systems can be made for each of the selected test cases, for example to the effect that a specific case should be tested better in a HiL than in a SiL environment.

Schließlich kann vorgesehen sein, dass die Merkmalsmatrix hinsichtlich der Güte der Merkmale aktualisiert wird. Somit können die auf dem Testsystem gewonnenen Erkenntnisse in den Lernalgorithmus zur Erstellung der Testfälle einfließen, wodurch die Testabdeckung auf dem jeweiligen Testsystem gesteigert wird.Finally, it can be provided that the feature matrix is updated with regard to the quality of the features. The knowledge gained on the test system can thus flow into the learning algorithm for creating the test cases, which increases the test coverage on the respective test system.

Figurenlistecharacter list

Ausführungsbeispiele der Erfindung sind in den Zeichnungen dargestellt und in der nachfolgenden Beschreibung näher erläutert. Es zeigt:

  • 1 das Flussdiagramm eines Verfahrens gemäß einer ersten Ausführungsform.
  • 2 die Bildung einer Merkmalsmatrix der Testfälle im Dateiformat der Python-Programmbibliothek „NumPy“.
  • 3 die Klasseneinteilung eines Testfalles gemäß einem Algorithmus, welcher Informationen aus den Merkmalsmatrizen der Testfälle, des Testsystems und des letzten Aktualisierungsvorgangs heranzieht. Aus den Matrizen extrahierte Daten betreffen neben Prüfrahmen und Qualitätskennzahlen beispielsweise geforderte Merkmale, deren Verteilung über das Testsystem sowie Häufigkeit und Kontext ihrer Überprüfung.
  • 4 schematisch eine Arbeitsstation gemäß einer zweiten Ausführungsform.
Embodiments of the invention are shown in the drawings and explained in more detail in the following description. It shows:
  • 1 the flowchart of a method according to a first embodiment.
  • 2 the creation of a characteristic matrix of the test cases in the file format of the Python program library "NumPy".
  • 3 the classification of a test case according to an algorithm which uses information from the feature matrices of the test cases, the test system and the last update process. Data extracted from the matrices, in addition to test frameworks and quality indicators, concern, for example, required characteristics, their distribution across the test system, as well as the frequency and context of their verification.
  • 4 schematically a workstation according to a second embodiment.

Ausführungsformen der ErfindungEmbodiments of the invention

1 illustriert den Ablauf eines erfindungsgemäßen Verfahrens (10), dessen Elemente nunmehr im Einzelnen erläutert seien. 1 illustrates the course of a method (10) according to the invention, the elements of which will now be explained in detail.

Berücksichtigung finden hierbei die funktionalen und nicht-funktionalen Anforderungen (1) an das zu testende System (1a). Einschlägige Testsysteme weisen Merkmale wie bestimmte Sensoren, Aktoren, Steuereinheiten oder Kommunikationsnetze auf, die entweder physisch oder virtuell vorliegen.The functional and non-functional requirements (1) of the system to be tested (1a) are taken into account. Relevant test systems have features such as specific sensors, actuators, control units or communication networks that are either physical or virtual.

Ein maschineller Lernalgorithmus (2) verwendet Werkzeuge zur Verarbeitung natürlicher Sprache, um die an das Testsystem (1a) gestellten Anforderungen (1) in Testszenarien umzuwandeln, wobei bekannte Methoden zur Textvorverarbeitung, Tokenisierung und Normalisierung zum Einsatz kommen. Die Erzeugung der Testszenarien beruht dabei auf einer Merkmalsmatrix (4a) des Testsystems (1a), deren Aufbau im Weiteren genauer beleuchtet werden soll.A machine learning algorithm (2) uses natural language processing tools to convert the requirements (1) placed on the test system (1a) into test scenarios, using known methods for text preprocessing, tokenization and normalization. The generation of the test scenarios is based on a feature matrix (4a) of the test system (1a), the structure of which will be examined in more detail below.

Der zum überwachten Lernen verwendete Datenkorpus (2a) besteht aus Merkmalen des Testsystems (1a), welche im Rahmen des Lernalgorithmus (2) zur Erzeugung der Testszenarien genutzt werden.The data corpus (2a) used for supervised learning consists of features of the test system (1a), which are used within the framework of the learning algorithm (2) to generate the test scenarios.

Aus den besagten Testszenarien werden gemäß einem zweiten Lernalgorithmus (3) anhand vorgegebener Randbedingungen (3a) die Testfälle (3c) erstellt, wobei je nach Anwendungsgebiet und Prüfrahmen (3b) entweder gängige Methoden wie suchbasiertes Testen oder eigens entworfene Methoden zur Regression aus dem Bereich des maschinellen Lernens (ML) zum Einsatz kommen.From the said test scenarios, the test cases (3c) are created according to a second learning algorithm (3) based on given boundary conditions (3a), whereby, depending on the area of application and test framework (3b), either common methods such as search-based testing or specially designed methods for regression from the area of machine learning (ML) are used.

Die Randbedingungen (3a) der Parameter für die automatische Erstellung der Testfälle (3c) werden vorgegeben, um die Beherrschbarkeit und Gültigkeit der Testfälle (3c) für das Testsystem (1a) sicherzustellen.The boundary conditions (3a) of the parameters for the automatic creation of the test cases (3c) are specified in order to ensure the controllability and validity of the test cases (3c) for the test system (1a).

Bestimmte Anwendungsbereiche wie Antriebsstrang, Bremse, Multimedia oder Fahrerassistenz erfordern unterschiedliche Testszenarien, -methoden, -systeme und Prüfrahmen (3b) in funktionaler (z. B. Validierung der Fahrdynamikregelung gemäß ISO 19365:2016) und nicht-funktionaler (z. B. Dienstgüte eines Kommunikationsnetzes) Hinsicht.Certain areas of application such as powertrain, brakes, multimedia or driver assistance require different test scenarios, methods, systems and test frames (3b) in functional (e.g. validation of vehicle dynamics control according to ISO 19365:2016) and non-functional (e.g. quality of service). of a communication network) respect.

Die auf diese Weise erstellten Testfälle (3c) bilden die Ausgabe des zweiten Lernalgorithmus (3), die für die Ausführung im Testsystem (1a) vorgesehen sind.The test cases (3c) created in this way form the output of the second learning algorithm (3), which is intended for execution in the test system (1a).

Gemäß einem dritten Lernalgorithmus (4) wird aus den oben beschriebenen Merkmalen des Testsystems (1a) eine Merkmalsmatrix (4a) gebildet. Der Algorithmus extrahiert diese Merkmale automatisch aus der Architektur des Testsystems (1a).According to a third learning algorithm (4), a feature matrix (4a) is formed from the features of the test system (1a) described above. The algorithm automatically extracts these features from the architecture of the test system (1a).

Die von der Merkmalsmatrix (4a) erfassten Merkmale des Testsystems (1a) werden auf die in einem späteren Schritt (8) gemessene Güte (12) abgebildet und - sowohl hinsichtlich der Güte (12) als auch neuer Merkmale - fortlaufend aktualisiert (13). Anhand der ermittelten Güte (12), der Angaben aus der Testfall-Merkmalsmatrix (5a), der gegenwärtigen Merkmalsmatrix (4a) des gesamten Testsystems (1a) sowie der Daten über deren vergangene Aktualisierungen (13) wird die Matrix (4a) fortlaufend angepasst und weiterentwickelt. Vereinfacht ausgedrückt werden dabei die Daten aus früheren Wiederholungen zugrunde gelegt, um die Kenntnis der Güte (12) des Testsystems (1a) anhand neuer Einsichten aus den Ergebnissen (7a) des derzeit bewerteten Testfalls zu erweitern. Die Merkmalsmatrix (4a) liegt hierbei in Form eines Tensors für die ML-Algorithmen vor, beispielsweise: Kategorie Baugruppe Merkmal Merkmal Merkmal Fahrzeug Fahrzeug Batterie APP Fahrertür Aktor/ Sensor Abgassystem Ladedruck-Sensor AGR-Massenstrom-Sensor Drehzahlsensor des Turboladers vECU-Funktion Verbrennungssystem MotorDrehmoment Zündsteuerung Zündklopfregelung ... ... ... ... ... The features of the test system (1a) recorded by the feature matrix (4a) are mapped to the quality (12) measured in a later step (8) and - both in terms of quality (12) and new features - continuously updated (13). The matrix (4a) is continuously adjusted and further developed. To put it simply, the data from earlier repetitions is used as a basis in order to expand the knowledge of the quality (12) of the test system (1a) using new insights from the results (7a) of the test case currently being evaluated. The feature matrix (4a) is in the form of a tensor for the ML algorithms, for example: category module feature feature feature vehicle vehicle battery APP Drivers door actuator/ sensor exhaust system boost pressure sensor EGR mass flow sensor Turbocharger speed sensor vECU function combustion system engine torque ignition control ignition knock control ... ... ... ... ...

Gemäß einem - dem dritten Lernalgorithmus (4) ähnlichen - vierten Lernalgorithmus (5) wird aus den Merkmalen der Testfälle (3c) eine zweite Merkmalsmatrix (5a) gebildet.According to a fourth learning algorithm (5), which is similar to the third learning algorithm (4), a second feature matrix (5a) is formed from the features of the test cases (3c).

Diese zweite Merkmalsmatrix (5a) wird im Weiteren zu einem Vergleich mit den verfügbaren Merkmalen des Testsystems (1a) in der ersten Merkmalsmatrix (4a) herangezogen. Die Kenntnis darüber, welche Merkmale oder Funktionen des Testsystems (1a) vom betrachteten Testfall berührt sind, wird dazu verwendet, die erste Merkmalsmatrix (4a) hinsichtlich der in einem späteren Schritt (8) gemessenen Güte (12) dieser Merkmale bzw. Funktionen des Testsystems (1a) zu aktualisieren (siehe 2).This second feature matrix (5a) is then used for a comparison with the available features of the test system (1a) in the first feature matrix (4a). The knowledge of which features or functions of the test system (1a) are affected by the test case under consideration is used to calculate the first feature matrix (4a) with regard to the quality (12) of these features or functions of the test system measured in a later step (8). (1a) to be updated (see 2 ).

Gemäß einem fünften Lernalgorithmus (6) werden die Testfälle (3c) im Rahmen eines Vergleichs der Merkmalsmatrizen in Klassen eingeteilt und dem Testsystem (1a) - abhängig von Verfügbarkeit und Güte (12) seiner Merkmale - gemäß der Klasseneinteilung zugeordnet. Die erste Merkmalsmatrix (4a) bildet Umfang und Güte (12) des Testsystems (1a) auf dessen gegenwärtigen Zustand ab. Die zweite Merkmalsmatrix (5a) hingegen stellt diejenigen Bereiche und Merkmale des Testsystems (1a) dar, welche durch den jeweiligen Test (7) angesprochen, aktiviert oder überprüft werden.According to a fifth learning algorithm (6), the test cases (3c) are divided into classes as part of a comparison of the feature matrices and assigned to the test system (1a)--depending on the availability and quality (12) of its features--according to the class division. The first feature matrix (4a) maps the scope and quality (12) of the test system (1a) to its current state. The second feature matrix (5a), on the other hand, represents those areas and features of the test system (1a) that are addressed, activated or checked by the respective test (7).

Mittels eines Algorithmus (6), der den für den vorliegenden Test (7) relevanten Zustand des Testsystems (1a) analysiert, kann somit eine Aussage über die Überprüfbarkeit des betrachteten Systems (1a) getroffen und der erstellte Testfall dementsprechend eingeordnet werden. Bezugnehmend auf 3 mag etwa dem exemplarischen Merkmal „Ladedruck-Sensor“ (15) eine Erfüllung der Qualitätsanforderungen zu 80 % attestiert werden (16).Using an algorithm (6), which analyzes the state of the test system (1a) relevant to the present test (7), a statement can be made about the verifiability of the system (1a) under consideration and the test case created can be classified accordingly. Referring to 3 For example, the exemplary feature "boost pressure sensor" (15) may be certified as 80% meeting the quality requirements (16).

Entsprechend der - gemäß dem fünften Lernalgorithmus (6) vorgenommenen - Klasseneinteilung wird das Testsystem (1a) in den zugeordneten Testfällen (3c) nunmehr selbsttätig dem Test (7) unterzogen.The test system (1a) is now automatically subjected to the test (7) in the assigned test cases (3c) in accordance with the class division made according to the fifth learning algorithm (6).

Die vom Test (7) gelieferten Ergebnisse (7a) werden hinsichtlich der Kriterien „bestanden“ und „nicht bestanden“ ausgewertet und ein diesbezüglicher Prüfbericht erstellt.The results (7a) provided by the test (7) are evaluated with regard to the criteria "passed" and "failed" and a test report is created in this regard.

Gemäß einem sechsten Lernalgorithmus (8) werden die Ergebnisse (7a) des Tests (7) zur Qualitätsmessung mit den in einem Bezugssystem vorgenommenen Messungen (z. B. in Anwendung von Signalvergleichsalgorithmen nach ISO/TS 18571) verglichen und ein Bericht über die Güte (12) des Testsystems (1a) erstellt.According to a sixth learning algorithm (8), the results (7a) of the quality measurement test (7) are compared with the measurements made in a reference system (e.g. using signal comparison algorithms according to ISO/TS 18571) and a report on the quality ( 12) of the test system (1a) created.

Beim Bezugssystem mag es sich um ein Fahrzeug, einen HiL- oder SiL-Prüfstand handeln. Bei der Aktualisierung (13) eines Merkmales des Testsystems (1a) in der ersten Merkmalsmatrix (4a) fließt die Güte (12) mit einer Gewichtung ein, welche der Anzahl der durchgeführten Testfälle (3c) entspricht, die das betreffende Merkmal abdecken.The reference system may be a vehicle, a HiL or SiL test bench. When updating (13) a feature of the test system (1a) in the first feature matrix (4a), the quality flows (12) with a weighting that corresponds to the number of test cases (3c) performed that cover the feature in question.

Eine Kostenfunktion (8a) gibt den Aufwand für die Ausführung eines Testfalles in einem bestimmten Testsystem (1a) an, welcher als Gewichtungsfaktor zur Ermittlung der Güte (12) des Testsystems (1a) dient. Einerseits kann die Kostenfunktion (8a) die Teststrategie stützen, indem die Zuordnung der Tests (7) zu den verfügbaren Testsystemen aufwandsbewusst vorgenommen wird. Andererseits ermöglicht die Kenntnis um die Güte (12) des Testsystems (1a) in Verbindung mit der Kostenfunktion (8a), den Entwicklungs- und Testprozess wirtschaftlicher zu gestalten. Das Wissen über mögliche Qualitätseinbußen im anvisierten Testsystem (1a) erlaubt es, den Entwicklungs- und Testprozess gezielt zu steuern und auf diese Weise die Testabdeckung bereits in der Entwicklungsphase maßgeblich zu erhöhen.A cost function (8a) indicates the effort for executing a test case in a specific test system (1a), which is used as a weighting factor to determine the quality (12) of the test system (1a). On the one hand, the cost function (8a) can support the test strategy by assigning the tests (7) to the available test systems in an effort-conscious manner. On the other hand, knowledge of the quality (12) of the test system (1a) in connection with the cost function (8a) enables the development and test process to be designed more economically. The knowledge of possible quality losses in the targeted test system (1a) allows the development and test process to be controlled in a targeted manner and in this way to significantly increase test coverage as early as the development phase.

Durch die Messung der Güte (12) des Testsystems (1a) ist es in Ergänzung zur Klasseneinteilung möglich, Schwachstellen im Testsystem (1a) zu benennen. So lässt sich ein etwaiges Optimierungspotenzial (8b) bezüglich konkreter Anforderungen (1) aufzeigen, die womöglich zu Unrecht als nachrangig gelten, deren Erhöhung indes die Güte (12) des jeweiligen Zielsystems oder des Testsystems (1a) selbst entscheidend steigern würde. Dies wiederum hätte eine Qualitätssteigerung des eigentlichen Produkts oder des Testsystems (1a) zur Folge, was abermals die Teststrategie unterstützt. Dazu werden die qualitätsmindernden Merkmale und der mit diesen Merkmalen verknüpfte Prüfrahmen (3b) sämtlicher vergangener Testläufe analysiert und anhand der Analyse Unregelmäßigkeiten erkannt.By measuring the quality (12) of the test system (1a), it is possible to name weaknesses in the test system (1a) in addition to the classification. In this way, any potential for optimization (8b) with regard to specific requirements (1) can be shown, which may wrongly be considered subordinate, but whose increase would significantly increase the quality (12) of the respective target system or the test system (1a) itself. This in turn would result in an increase in the quality of the actual product or the test system (1a), which again supports the test strategy. For this purpose, the quality-reducing features and the test framework (3b) linked to these features of all previous test runs are analyzed and irregularities are identified based on the analysis.

Dieses Verfahren (10) kann beispielsweise in Software oder Hardware oder in einer Mischform aus Software und Hardware beispielsweise in einer Arbeitsstation (20) implementiert sein, wie die schematische Darstellung der 4 verdeutlicht.This method (10) can be implemented, for example, in software or hardware or in a mixed form of software and hardware, for example in a workstation (20), such as the schematic representation of FIG 4 clarified.

ZITATE ENTHALTEN IN DER BESCHREIBUNGQUOTES INCLUDED IN DESCRIPTION

Diese Liste der vom Anmelder aufgeführten Dokumente wurde automatisiert erzeugt und ist ausschließlich zur besseren Information des Lesers aufgenommen. Die Liste ist nicht Bestandteil der deutschen Patent- bzw. Gebrauchsmusteranmeldung. Das DPMA übernimmt keinerlei Haftung für etwaige Fehler oder Auslassungen.This list of documents cited by the applicant was generated automatically and is included solely for the better information of the reader. The list is not part of the German patent or utility model application. The DPMA assumes no liability for any errors or omissions.

Zitierte PatentliteraturPatent Literature Cited

  • DE 102019212458 [0003]DE 102019212458 [0003]

Claims (10)

Verfahren (10) zum Erstellen von Testfällen (3c) für ein Testsystem (1a), insbesondere einen zumindest teilautonomen Roboter oder ein Fahrzeug, gekennzeichnet durch folgende Merkmale: - Anforderungen (1) an das Testsystem (1a) werden gemäß einem ersten Lernalgorithmus (2) anhand eines Korpus (2a) in Testszenarien umgewandelt, - aus den Testszenarien werden gemäß einem zweiten Lernalgorithmus (3) anhand von vorgegebenen Randbedingungen (3a) in einem vorgegebenen Prüfrahmen (3b) die Testfälle (3c) erstellt und - aus Merkmalen des Testsystems (1a) wird gemäß einem dritten Lernalgorithmus (4) eine erste Merkmalsmatrix (4a) gebildet, welche in den Korpus (2a) aufgenommen (11) wird.Method (10) for creating test cases (3c) for a test system (1a), in particular an at least partially autonomous robot or a vehicle, characterized by the following features: - Requirements (1) for the test system (1a) are determined according to a first learning algorithm (2nd ) are converted into test scenarios using a corpus (2a), - the test cases (3c) are created from the test scenarios according to a second learning algorithm (3) using specified boundary conditions (3a) in a specified test framework (3b) and - from characteristics of the test system ( 1a) a first feature matrix (4a) is formed according to a third learning algorithm (4), which is included (11) in the corpus (2a). Verfahren (10) nach Anspruch 1, gekennzeichnet durch folgende Merkmale: - aus Merkmalen der Testfälle (3c) wird gemäß einem vierten Lernalgorithmus (5) eine zweite Merkmalsmatrix (5a) gebildet und - gemäß einem fünften Lernalgorithmus (6) wird eine Klasseneinteilung der Testfälle (3c) anhand der Merkmalsmatrizen (4a, 5a) vorgenommen.Method (10) according to claim 1 , characterized by the following features: - a second feature matrix (5a) is formed from features of the test cases (3c) according to a fourth learning algorithm (5) and - according to a fifth learning algorithm (6), a class classification of the test cases (3c) is made using the feature matrices ( 4a, 5a). Verfahren (10) nach Anspruch 2, gekennzeichnet durch folgende Merkmale: - das Testsystem (1a) wird in den Testfällen (3c) gemäß der Klasseneinteilung einem Test (7) unterzogen und - vom Test (7) gelieferte Ergebnisse (7a) werden ausgewertet.Method (10) according to claim 2 , characterized by the following features: - the test system (1a) is subjected to a test (7) in the test cases (3c) according to the classification and - the results (7a) supplied by the test (7) are evaluated. Verfahren (10) nach Anspruch 3, gekennzeichnet durch folgendes Merkmal: - gemäß einem sechsten Lernalgorithmus (8) wird anhand der Ergebnisse (7a) eine Güte (12) des Testsystems (1a) gemessen und - die erste Merkmalsmatrix (4a) wird hinsichtlich der Güte (12) der Merkmale aktualisiert (13).Method (10) according to claim 3 , characterized by the following feature: - according to a sixth learning algorithm (8), a quality (12) of the test system (1a) is measured based on the results (7a) and - the first feature matrix (4a) is updated with regard to the quality (12) of the features (13). Verfahren (10) nach Anspruch 4, gekennzeichnet durch mindestens eines der folgenden Merkmale: - das Aktualisieren (13) erfolgt anhand einer für die Testfälle (3c) definierten Kostenfunktion (8a) und - das Aktualisieren (13) erfolgt anhand eines auf die Anforderungen (1) bezogenen Optimierungspotenziales (8b) des Testsystems (1a).Method (10) according to claim 4 , characterized by at least one of the following features: - the updating (13) takes place using a cost function (8a) defined for the test cases (3c) and - the updating (13) takes place using an optimization potential (8b) related to the requirements (1) of the test system (1a). Verfahren (10) nach einem der Ansprüche 3 bis 5, gekennzeichnet durch folgende Merkmale: - die Merkmale sind in einer tabellarischen Dokumentenvorlage (14) vorgegeben und - die zweite Merkmalsmatrix (5a) wird anhand der Dokumentenvorlage (14) gebildet.Method (10) according to any one of claims 3 until 5 , characterized by the following features: - the features are specified in a tabular document template (14) and - the second feature matrix (5a) is formed on the basis of the document template (14). Verfahren (10) nach einem der Ansprüche 3 bis 6, dadurch gekennzeichnet, dass eine automatische Verbesserung von durch den Test (7) erkannten Fehlern des Testsystems (1a) erfolgt.Method (10) according to any one of claims 3 until 6 , characterized in that errors in the test system (1a) detected by the test (7) are improved automatically. Computerprogramm, welches eingerichtet ist, das Verfahren (10) nach einem der Ansprüche 1 bis 7 auszuführen.Computer program which is set up, the method (10) according to one of Claims 1 until 7 to execute. Maschinenlesbares Speichermedium, auf dem das Computerprogramm nach Anspruch 8 gespeichert ist.Machine-readable storage medium on which the computer program claim 8 is saved. Vorrichtung (30), die eingerichtet ist, das Verfahren (10) nach einem der Ansprüche 1 bis 7 auszuführen.Device (30) which is set up, the method (10) according to one of Claims 1 until 7 to execute.
DE102021109133.0A 2021-04-13 2021-04-13 Method and device for creating test cases for a test system Pending DE102021109133A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
DE102021109133.0A DE102021109133A1 (en) 2021-04-13 2021-04-13 Method and device for creating test cases for a test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
DE102021109133.0A DE102021109133A1 (en) 2021-04-13 2021-04-13 Method and device for creating test cases for a test system

Publications (1)

Publication Number Publication Date
DE102021109133A1 true DE102021109133A1 (en) 2022-10-13

Family

ID=83361858

Family Applications (1)

Application Number Title Priority Date Filing Date
DE102021109133.0A Pending DE102021109133A1 (en) 2021-04-13 2021-04-13 Method and device for creating test cases for a test system

Country Status (1)

Country Link
DE (1) DE102021109133A1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102019212458A1 (en) 2019-08-21 2021-02-25 Robert Bosch Gmbh Method of testing a system for a requirement

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102019212458A1 (en) 2019-08-21 2021-02-25 Robert Bosch Gmbh Method of testing a system for a requirement

Similar Documents

Publication Publication Date Title
DE102005026040B4 (en) Parameterization of a simulation working model
AT520827B1 (en) A method of determining a vehicle parameter of a vehicle record of a vehicle and using the vehicle parameter on a test bench
EP3757795A1 (en) Method and device for optimal distribution of test cases to different test platforms
DE102017211433A1 (en) Method for performing a functional test of a control unit in a hardware-in-the-loop test, HIL test, and HIL test bench and control unit
DE102021100149A1 (en) Computer-implemented method for providing a test history of traffic scenarios to be tested
DE102019134053A1 (en) Process for the continuous validation of automated driving functions applied in driving tests
EP3757792A2 (en) Method and device for testing a system, for selecting real tests and for testing systems with machine learning components
EP3306295A1 (en) Method and device for testing electronic controls, in particular for testing of automobile control systems
DE102015014478A1 (en) System and method for calibrating a vehicle component
DE102021109133A1 (en) Method and device for creating test cases for a test system
DE102020206327A1 (en) Method and device for testing a technical system
DE102021109126A1 (en) Procedure for testing a product
WO2018177526A1 (en) Robustness analysis for vehicles
DE102021109129A1 (en) Procedure for testing a product
DE102019219067A1 (en) Method for the automatic qualification of a virtual model for a motor vehicle component
DE102016115314A1 (en) Modifying and simulating the operating software of a technical system
DE102020213809A1 (en) Method for operating a control device when testing software in the control device and method for operating a test computer when testing software in a control device
EP3783493A1 (en) Method for testing a system for a request
DE102020215387A1 (en) Method for optimizing a test set for automatic qualification of a virtual model for an automotive component
DE102021109127A1 (en) Procedure for testing a product
DE102021102460A1 (en) Procedure for performing a simulation
DE102017205437A1 (en) Robustness analysis in vehicles
EP4006848A1 (en) Method for testing an object detection system
DE102010014720A1 (en) Method for verifying code of target program used for software for automotive electronics for engine, involves comparing output test variables corresponding to each program section of target program and program code
DE102023001366A1 (en) Method for checking a perception module of a driver assistance system