What is tested? - OPC Foundation

Download Report

Transcript What is tested? - OPC Foundation

Classic Data Access Training
OPC Classic Compliance Test Tool
Introduction to the OPC Compliance Test
for OPC Classic Server Testing
Press SPACE to advance through the slides.
OPC Compliance Test Training - Server
Contents
•
Introduction
•
Familiarization of User Interface
•
Finding Help
•
Test Tool Configuration
•
Testing & Debugging
•
Next Steps
OPC Compliance Test Training - Server
Introduction (1 of 3)
What is it?
OPC Compliance Test Tool (CTT) is designed to test
a Classic OPC Server for compliance.
Your Classic DA
Server
Where is it?
www.opcfoundation.org/classic/ctt
Who can get it?
OPC Foundation Corporate Members
What is tested?
Classic OPC Servers
Coverage?
DA 2.05a, DA 3.0, Historical Data Access 1.20,
OPC
Compliance
Test tool
XML Data Access 1.01, and Alarm & Events 1.01
Easy to use?
4/19/2012
Yes, once you’ve learned the basics.
© 2012 OPC Foundation
You
3
OPC Compliance Test Training - Server
Introduction (2 of 3)
How it works:
Each Method is tested by invoking specific calls that:
a. are expected to pass and/or return specific results
b. are expected to fail and/or return specific results
c. multiple parameter combinations to check behavior
d. validates behavior matches the OPC specifications
Test authors?
4/19/2012
Compliance Working Group (cmpwg)
© 2012 OPC Foundation
4
OPC Compliance Test Training - Server
Introduction (3 of 3)
How do I pass?
Your product must pass all tests in all selected
Interfaces
Am I Certified?
Passing the CTT does not mean you are certified by
the OPC Foundation. It means that your product is
ready for certification in a Test Lab.
CTT used in Lab? Yes, test-labs use the current release version(s).
Use CTT When?
The best time is during product development. All
Classic products must pass the CTT prior to release.
Additional Help:
4/19/2012
A complete user guide is provided with the CTT.
© 2012 OPC Foundation
5
OPC Compliance Test Training - Server
Launching OPC Compliance Test (1 of 1)
Windows Vista/7:
Start >
All Programs >
OPC Foundation >
Compliance Test 2.00>
OPC Compliance Test
Windows 8:
Start >
OPC Compliance Test (CTT)
6
4/19/2012
© 2012 OPC Foundation
OPC Compliance Test Training - Server
Familiarization (1 of 2)
There is (by default) 1 “widget” to the left in the CTT:
• Browse tree: a list of test sections listing OPC interfaces and test cases.
Test Sections
OPC Interfaces
Test Cases
4/19/2012
© 2012 OPC Foundation
7
OPC Compliance Test Training - Server
Familiarization (2 of 2)
There are (by default) 2 “widgets” to the right:
• Test results: shows the test results of each test-case
• Documentation and Help: provides details of OPC Interfaces and Methods
4/19/2012
© 2012 OPC Foundation
8
OPC Compliance Test Training - Server
Finding Help (1 of 1)
Complete documentation is available from the Contents option in the “?” menu.
Documentation includes a user-guide and other useful testing tips.
4/19/2012
© 2012 OPC Foundation
9
OPC Compliance Test Training - Server
Test Tool Configuration (1 of 4 )
First, select the Compliance Test Type from the “options” tab in the Extras menu.
OPC Interfaces and test cases in the browse tree will be updated.
The remaining settings will vary depending on the Compliance Test Type selected.
We will concentrate on
Data Access 2.05a and
3.0 server settings in
this tutorial
4/19/2012
© 2012 OPC Foundation
10
OPC Compliance Test Training - Server
Test Tool Configuration (2 of 4)
Test Settings for Data Access 2.05a and 3.0 Server are the same; the only difference is
the supported interfaces.
To open the Test Settings window select “start” from the Compliance Test menu, or
“Test Settings” option in the Extras Menu.
Or…
Option to browse
available servers on
the local or remote
machine
4/19/2012
© 2012 OPC Foundation
11
OPC Compliance Test Training - Server
Test Tool Configuration (3 of 4)
There are (by default) 4 widgets in the “Test Items” option.
• Select Item(s): Manually select items using the integrated Item Browser
• Import (csv): Import items from a *.CSV file
• Export (csv): Export items to a *.CSV for future use
• Remove Selected Item(s): Remove the selected items in the list
4/19/2012
© 2012 OPC Foundation
12
OPC Compliance Test Training - Server
Test Tool Configuration (4 of 4)
Other settings have default values which you can modify, if you prefer.
Click OK to apply
the changes
4/19/2012
© 2012 OPC Foundation
13
OPC Compliance Test Training - Server
Testing & Debugging (1 of 3)
Select “Start” from the Compliance Test menu; configure the Server and Items .
By default, the Compliance Test option runs all test cases listed in the Browse Tree.
4/19/2012
© 2012 OPC Foundation
14
OPC Compliance Test Training - Server
Testing & Debugging (1 of 3)
Wait, while the automated testing is conducted.
This can take a while, depending on the CTT configuration and # of tests selected.
Test progress bar, may
take several minutes to
complete all testing
4/19/2012
© 2012 OPC Foundation
15
OPC Compliance Test Training - Server
Testing & Debugging (4 of 4)
To run individual interfaces or test cases use the Debug Test option.
You can Activate or Deactivate test suites or test-cases, and you can Add Breakpoints
on any test to interrupt test execution, which is helpful during product development.
Right click for contextsensitive menu options
4/19/2012
© 2012 OPC Foundation
16
OPC Compliance Test Training - Server
Testing & Debugging (2 of 3)
With tests activated/deactivated or if you have set Breakpoints then ; click Start from
the Debug Test menu…
2. Specify the Items
for testing with
1. Specify the
Server connection
4/19/2012
© 2012 OPC Foundation
17
OPC Compliance Test Training - Server
Testing & Debugging (5 of 5)
After a test-run, a summary report is generated indicating the result of the overall test.
Individual interfaces/test case results are displayed in the Test Result widget by
selecting the interface from the browse tree.
4/19/2012
© 2012 OPC Foundation
18
OPC Compliance Test Training - Server
Testing & Debugging (5 of 5)
The test results are shown here:
Results Tab Summary report of
the test conducted
Results of the individual
Interfaces
4/19/2012
© 2012 OPC Foundation
19
OPC Compliance Test Training - Server
Next Steps…
Once your Classic DA Server passes all applicable CTT tests:
• Conduct Interoperability Testing
• Conduct Behavior Testing
• Conduct Resource-efficiency Testing
• Interoperability, Behavior and Resource-efficiency testing
details are available here: www.opcfoundation.org/ua/ctt/help/testcases
• Request Certification in the Test Lab:
www.opcfoundation.org/Compliance-Certification/A1-Application.docx
4/19/2012
© 2012 OPC Foundation
20
OPC Compliance Test Training - Server
The End!
Download: www.opcfoundation.org/classic/ctt
Certification: www.opcfoundation.org/certification
Lab Testing: www.opcfoundation.org/lab/signup
Bug Tracker: www.opcfoundation.org/mantis
Contact: [email protected]