7/18/2020 10:42 PM | |
Joined: 9/23/2005 Last visit: 9/11/2024 Posts: 4347 Rating:
|
TIA Portal Test Suite Advanced is a test suite plataform for TIA Portal. It has two main parts: "Styleguide" and "Application Test". "Styleguide" check if the project follow user defined "style rules".
TIPs:
"Application test" (like descripted in its help system) enables user to define test cases for the PLC program blocks of PLC 1500 with the help of SIMATIC S7-PLCSIM Advanced in “AAA” pattern. It enables the user to: - Arrange : Set the values of the data that is passed to the program blocks under test. - Act : Run the user program under test with the arranged parameters with the PLC instance created locally. - Assert : Verify that the action under test behaves as expected. That means: It is based on "Test Cases", each one composed as one or serveral steps. Each step has the structure:
Attribution is done like as SCL (for example, X := Y;) Wating is done by the "RUN" command (that defines how many time or PLC's cylces should be wait to execute the next line) Check is donoe by "Assert" command. Example: image that we have a simple logic, with a open contact connected to I0.0 ("on")and a coil connect to Q0.0 ("motor"). As test we would like to check if "motor" (Q0.0) goes to true when "on" (I0.0) is true (step 1) and if Q0.0 goes to false when I0.0 is false (step2). VAR myInput : "on"; myOutput : "motor"; END_VAR STEP: "Step test true" myInput := TRUE; RUN(CYCLES := 1); ASSERT.Equal (myOutput, TRUE); END_STEP STEP: "Step test false" myInput := FALSE; RUN(CYCLES := 1); ASSERT.Equal (myOutput, FALSE); END_STEP TIPs: - PLCSIM Avanced should be avaliable, but the project should not be load on it (Tester Suite load it for you). TIPS about the news of V18 see post of 12/2022 |
Last edited by: Denilson Pegaia at: 12/02/2022 12:53:40Last edited by: Denilson Pegaia at: 12/02/2022 12:54:24Denilson Pegaia |
|
This contribution was helpful to
1 thankful Users |
9/9/2020 12:09 PM | |
Joined: 9/23/2005 Last visit: 9/11/2024 Posts: 4347 Rating:
|
Hi, about the Application & Examples, there are two, one for each product branch:
|
Denilson Pegaia |
|
12/2/2022 12:52 PM | |
Joined: 9/23/2005 Last visit: 9/11/2024 Posts: 4347 Rating:
|
As from TIA V18 there are 3 new functions (more details see “Delivery Release TIA Portal Test Suite Advanced V18” https://support.industry.siemens.com/cs/br/en/view/109807114)” 1 “In addition to application testing via the S7-PLCSIM Advanced API, the Test Suite now also offers automated testing via the S7-1200 / S7-1500 OPC UA Server interface (System test). When the test starts, Test Suite connects as an OPC UA Client to the specified server address and runs the test step by step.” TIP for OPC UA
2 “Style rules can be extended with an additional property to define their scope to a specific data, member or block type. This makes it possible to specify rules even better and limit their validity. – Data types: Bool, Integer, Char, UDT, IEC_Timer, etc. – Array, Struct, (Array of) Block Instance member types – Block type: TIA Portal libraries type” TIP for Extended Rules
3 “Application test - RUN with condition: – The RUN command can be used as an optional parameter for conditional execution of the test case. As soon as the optional parameter reaches the value specified by the user or the maximum number of cycles is reached, the execution ends: – Syntax: RUN( Loops := <value>, <optional_parameter> = <value>). TIP for RUN with condition
Sample program TIP: to test the OPC UA interface, it is necessary to export and defined the path of the XML with the data definition. I place the xlm already exported, but it is necessary to match the path in the spanner icon. AttachmentExample.zip (377 Downloads) |
Denilson Pegaia |
|
6/7/2024 7:57 PM | |
Joined: 9/23/2005 Last visit: 9/11/2024 Posts: 4347 Rating:
|
Hi, As from Test Suite V19 up1 it is possible to add a second parameter (additional condition) to statement WAIT in the system tests. As described in the download site (https://support.industry.siemens.com/cs/br/pt/view/109963843/en): “ The WAIT statement can be used with an optional parameter for conditional execution of the test case. Once the optional parameter reaches the user specified value or range of values or specified wait period is reached, the execution is continued. Syntax: WAIT( TIME := <value>, <optional_parameter> = <value>); Example:
“ TIP:
AttachmentForumV19up2TestSuit_20240607_1605.zip (148 Downloads) |
Denilson Pegaia |
|
Follow us on