SOA architecture/test phase interface description language conversion solution
SOA architecture prevails
SOA development and deployment steps
scene one
After architects use PREEvision Adaptive AUTOSAR to model the system and define service-related SWC, they usually export different types of ARXML. This file defines each service interface, data type, parameter reference, etc. These AP ARXML can be imported into CANoe for processing. Node simulation and monitoring of Ethernet communication also support importing DaVinci IDE to generate code and cooperate with DaVinci for development. However, this modeling process cannot be completed in the short term. It requires constant communication and coordination, and convenience is considered. During the communication process, relevant parties will use Excel as communication input, and eventually the configuration information in Excel will be converted into ARXML and imported into the relevant database. Verify using the tool.
Scene 2
When testing Ethernet (taking SOME/IP as an example), the developer outputs Excel, and the tester needs to convert the Excel into a file format that the test software can support, such as vCDL. This link requires a huge workload and the accuracy is not high. ensure.
Scene 3
When developers use DaVinci for architecture design, in order to speed up the development cycle, they usually use Excel as a template, fill in the interface information, data types, SWC definitions, SWC and interface relationships and other information in Excel, and then use the module to The person in charge makes the corresponding node configuration and connection association of the data in Excel in DaVinci Developer. The whole process has a high probability of error and is highly repetitive. A tool is needed to automatically generate ARXML files based on the Excel template file to implement SWC conversion and interface. Work in conjunction with SWC to improve design efficiency.
Scene 4
In the SOA architecture, the application of middleware technology decouples application software from the underlying operating system and hardware. We can use SIL (Software in loop) technology to functionally verify the system in the early stages of system development. An important part of SIL testing is SIL Adapter development. SIL Adapter implements the test system's call to the service under test. The SIL Adapter code structure for each service interface is the same. There are only a few code differences in the number, name, and type of interface parameters. The whole process is also highly repetitive. Tools are needed that can automatically convert the FIDL, XML, and ARXML and other files are automatically converted into C++ and other codes, and instrumentation code can be automatically generated based on the descriptions/notes in the files, etc., which will shorten the verification cycle.
Scene 5
In the stages of SOA architecture design, testing and verification, etc., engineers will use many configuration files as input or output files when using related tool software. However, given that there are many tools used and the standards between file formats are not uniform, each used Development tools and testing tools cannot support all formats, so the connection between tools is not smooth, which affects the work efficiency of engineers. Tools are needed that can automatically convert files in different formats to each other to achieve efficient connection of tools.
Scene 6
Test cases are usually managed in Doors or Polarion. The test steps or test standards in the test cases are normally described in natural language. During the test execution process, the software cannot recognize these descriptive languages. Testers need to convert these natural languages first. Convert it into a script file, and then put the test script into the test project for execution. When there are many test cases, the workload will be very huge. You need tools that can integrate relevant use case management software and automatically convert the test cases into corresponding Test software script files to improve efficiency while reducing the chance of errors.
Scene 7
The SOA test development process generally requires the following steps:
1. Test specification development: Complete the development of test specifications based on requirement specifications, testing experience and understanding of implementation solutions.
2. SOA-HIL test system requirements analysis and test system development: pin and resource definition of the object under test, HIL hardware and test software operating environment construction.
3. Test project development: Develop test projects to implement automated/semi-automated testing of test content defined by test specifications.
4. Simulation model development: Develop the simulation model and establish interface interaction with the node to be tested.
5. Test environment integrated debugging and test execution: Test environment construction, project integration debugging and test execution are carried out for a specific tested object.
There are many types of inputs required in each of the above steps, such as: SOA function requirement specifications, service interface specifications, resource definition files, test scope definitions, ARXML and other types of database files, test system third-party programming scripts, test specifications, communications Databases, communication matrix files, tested node interaction data format definitions, etc. need tools that can be unified and classified according to test items, and can also support format conversion between related input objects, and the converted results can be easily loaded into related tests. The software can automatically upload it to the corresponding location in the configuration library through the network to facilitate subsequent operations.
Scene 8
At present, SOA architecture software is generally managed using agile development methods. The high-frequency iteration of software versions has greatly tested the workload and automated testing capabilities of testers. At present, most OEMs and parts suppliers have basically carried out or are currently working on the project. Continuous integration testing solution to solve this problem.
As shown in the figure below, with the popularity of SOA architecture, input materials or specification files have become diversified. However, the prerequisite for continuous integration testing is that these interface files or use case files that are not recognized by the test software need to be converted in advance into conforming tests. Software-defined specification scripts and the ability to integrate with related tools for automatic conversion.
Why is interface description language conversion needed?
PAVELINK .
Introduction to SOA-Converter
The main functions are as follows
• Interface language converter: Through interface language conversion, the connection between tool chains in the software design and development process based on SOA architecture is realized.
• Interface language editor: By building a centralized one-stop editing environment for multiple interface languages, secondary editing and conversion of interface files can be achieved, while functions such as grammar verification, keyword prompts, and completion can be implemented.
• Command line converter: Provides a headless cross-platform command line tool that supports command line call conversion functions.
• Configuration library integration: Integrate the configuration library, automatically synchronize files, update reminders, and automatically convert source files into target files when they are updated.
• Open calling interface: Integrate with external tools through file stream monitoring to facilitate automated testing.
• Flexible expansion of plug-ins: Quickly implement new script language conversion through flexible expansion of plug-ins.
• SOA communication solution expansion: By interpreting the interface description language, it is automatically converted into server (Skeleton) and client (Proxy) framework codes, etc.
PAVELINK .
SOA-Converter Instructions for Use
PAVELINK
Eclipse plug-in conversion
1
Install the plug-in in Eclipse, select the file, right-click ->SOA-Converter->select the format type that needs to be converted.
Figure 6 PAVELINK.SOA-Converter graphical diagram
PAVELINK
command line conversion
1
Conversions can also be performed via commands.
2
Description of common parameters:
PAVELINK
Example description
1
An OEM's service interface test project based on SOA architecture uses PAVELINK.SOA-Converter to convert FIDL to CANoe system variable XML to simplify the test verification process.
Figure 8 Example of converting FIDL to CANoe system variables
Figure 9 Example of importing the converted system variable XML file into CANoe software
2
CCU domain controller test specifications, script development and testing services, using PAVELINK.SOA-Converter to implement the FIDL to SOA function to implement server and client C++ code examples.
Figure 10 Schematic diagram of SOA communication implementation node
Figure 11 Service interface file conversion C++ example diagram
3
A supplier's network-linked controller SOA function specification test and development project uses PAVELINK.SOA-Converter to implement Excel to ARXML, interface and SWC association examples
Figure 12 Excel template diagram
Figure 13 ARXML screenshot
More features, please stay tuned