当前位置:网站首页>Full analysis of embedded software testing tool tpt18 update

Full analysis of embedded software testing tool tpt18 update

2022-06-23 03:45:00 Polink beihui information

TPT As Piketec The company's embedded software testing tools , It has high scalability and convenience . As software testing becomes more and more complex and the requirements are diversified ,TPT Continuously improve to meet the requirements of keeping pace with the times . You can use... At all stages of development TPT To test . Whether it is simple unit testing or complex system testing ,TPT Can make testing faster 、 Simple and intuitive .

that , TPT18 How to make testing simple and fast ?

【 Beihui information 】TPT | Embedded software model dynamic testing tool TPT 18

TPT18 Update overall preview :
1, Add formal needs assessment , Implementation requirements are strongly related to evaluation ;
2, More flexible requirements management , Support custom function requirements ;
3, be based on TASMO hold-all , Auto generate satisfaction MCDC Required test cases ;
4, New coverage statistics tool TPT Coverage;
5, Enrich MATLAB Platform functions ;
6, How to add a given excitation signal (TPT Built in functions );
7, Batch Runner Interface and function update ;
8, ASAM XiL And Vector Series platform related updates ;

other :
1, newly added Simulink Real-Time XiL platform , Support the new generation Speedgoat Hardware ;
2, Carmaker Platform Optimize interface interaction , And the current test can pass IPG visualization ;
3, New evaluation function ,TPT.getConstant and TPT.isConstant(), Supports arbitrary expressions ;
4, Global assessments can be added to Assesslet in , It can be activated for any platform ;
5, Before and after test execution , Additable Python Script, Implement custom functionality ;
6, stay Test Case Details/Description Evaluation conditions can be derived from ;
7, Test Case Summary Linked requirements can be displayed in ID;
……

I wonder if you have seen our preemptive version ?

· Model dynamic testing tool TPT 18 The new version goes online , Help test efficiency one step faster
· Model dynamic testing tool TPT 18 More new features ——HiL test 、 demand management
·TPT 18 Function expansion and update :IBM ALM, Equivalence class ,ADAS test , Code debugging

Now we will introduce it in detail :

One 、 Formal needs assessment

Do you want to edit requirements without writing assessments ? Now? TPT18 Formal needs assessment can meet this requirement .

Formal requirements are concise 、 Clear and evaluable characteristics . stay TPT18 in , You can import Excel Requirements are translated into formal requirements assessment . Formal requirements are not just requirements covered by link relationships , It's a more direct assessment of needs .

such as , Lamp control model requirements SPEC-17, It can be translated into the following formal requirements assessment .
 Insert picture description here

chart 1 Formal needs assessment

The test results are as follows .

 Insert picture description here

chart 2 test result

Two 、 More flexible requirements management

TPT18 front , Functional requirements can only be imported from outside , Can't be in TPT Change in . Although this can ensure the unity of requirements , But it also brings inconvenience to the change of functional requirements . stay TPT18 in , But directly in Requirements Change in / Create a new functional requirement / Sub functional requirements , And the requirements will not change with the introduction of functional requirements .

 Insert picture description here

chart 3 Functional requirements update

3、 ... and 、 TASMO Support MC/DC Automatically generate test cases

What if the test coverage fails to meet the requirements ? Consider using TASMO.TASMO According to the model / Code structure generates test cases , Improve test coverage .

TPT18 In addition to supporting CC and DC Outside coverage , And support MCDC Cover , It is easier to achieve the desired coverage .

For example, in the model OR modular , If it is necessary to meet MCDC, The following conditions must be included :
 Insert picture description here

chart 4 In the model Or structure

1, All inputs are False;
2, One input is True, The rest are False;

stay TPT18 in , The following structures can be analyzed , And automatically generate test cases according to this structure .

 Insert picture description here

chart 5 TPT18 Or Module structure

Four 、 New code coverage statistics tool ——TPT Coverage

TPT When calculating coverage , Offers a variety of options , During the test, it can be decided according to its own situation .

In the model phase , You can call Targetlink、CTC++ for Targetlink and Simulink V&V Statistical coverage .

In the code phase , except CTC++ and GNU gcov Outside , It also provides TPT Coverage Statistical coverage .

 Insert picture description here

chart 6 TPT Coverage

 Insert picture description here

chart 7 Coverage report

 Insert picture description here

chart 8 Coverage report

5、 ... and 、 Enrich MALTAB Platform functions

1) MATLAB/Simulink Platform Accelerated operation mode

You can imagine that the data of a test case after running reaches nearly 10G Do you ?

A huge amount of data means one word —— slow , And it's super slow .

Now? , This situation is alleviated ,TPT18 Of “MATLAB/Simulink Platform” New options “Simulation Mode”, You can use “Normal”、“Accelerator”、“Rapid Accelerator” and “Software in the loop” Mode run test , It can speed up the test running .

Tip: For a large number of test cases ,TPT Support multi-core mode to accelerate operation .

 Insert picture description here

chart 9 Accelerated operation mode

2) Detect specific system coverage

TPT18 front , If you need to analyze the coverage of a specific sub level , Other sub levels need to be commented out . however , If there is interaction before the sub level , Grounding and other commissioning are required , More complicated . Now? ,TPT18 Get rid of this worry , Because you can directly exclude sub levels that you do not want to detect .

 Insert picture description here

chart 10 Advanced setting

 Insert picture description here

chart 11 Select a specific subsystem

3) Direct import Stateflow Intermediate variable

TPT18 Pre import Stateflow Intermediate variables need to be manually created and set Import Measurements, You also need to add scripts to the test platform .TPT18 Can be clicked directly “offline logging” Import , Convenient and quick .

 Insert picture description here

chart 12 Import Stateflow Intermediate variable

4) Automatic generation TPT Simulink Function Handler

When... Is used in the model Simulink Function, But test target level Function Caller And Simulink Function Not at the same level , An error will be reported when running the test ( Can't find Simulink Function).

In the face of this situation ,TPT18 Automatically generated in the test framework TPT Simulink Function Handler.

 Insert picture description here

chart 13 TPT Simulink Function Handler

6、 ... and 、 Ways to enrich a given excitation signal (TPT Built in functions )

TPT18 The given mode of excitation signal is added , for example :TPT.impulse()、TPT.step()、TPT.sinwave() etc. , It is more convenient to realize the desired signal .

 Insert picture description here

chart 14 TPT Built in functions

7、 ... and 、 Batch Runner Interface and function update

When there is more than one TPT The project needs to run , have access to Batch Runner Running at the same time .

stay TPT18 in , Updated interface , The following steps are added :

  • TPT API-script
  • Execute Tests
  • Generate Testframe
  • Generate Overview RePort

Support the following platforms to generate test frameworks :

 Insert picture description here

chart 15 Batch Runner

8、 ... and 、 ASAM XiL And Vector Related updates

1) Expanded ASAM XiL Support

Added... To the service items ASAM XiL Diag Port, It can be used directly in the test case DTC To operate , as follows :

  • Read DTCs
  • Clear DTCs
  • Read/Write Values
  • Execute Services
     Insert picture description here
chart 16 Added service steps

2) Support import DBC Enumerating type signals in

stay DBC If... Is defined and associated in Value Table,TPT18 Support import .
 Insert picture description here

chart 17 Import enumeration

3) XCP Communication control

Not only can you control before the test case is executed XCP Communications , And it can also be controlled in the test case , Easy to test .
 Insert picture description here

chart 18 XCP control

 Insert picture description here

chart 19 Control in test cases

And the limit of the length , We can't introduce them one by one TPT18 Changes , To learn more , Please click here .
Beihui Information Co., Ltd Piketec, Jointly promote the development of software testing . You are welcome to give us your valuable comments , Let software testing become more and more “ convenient ” and “ Simple ”!

author : Beihui information - Single threaded organism

If you like this article, remember to comment and praise the collection
More technical articles live courses , Please continue to pay attention to beihui information
️ For business consultation, please send private information to beihui or leave a message on the official website ️
原网站

版权声明
本文为[Polink beihui information]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206222235296529.html