Download presentation
Published byMicaela Slinger Modified over 10 years ago
1
Unified Architecture Training Compliance Test Tool (UACTT)
Introduction to the UA CTT for Client Testing Press SPACE to advance through the slides.
2
UACTT Training - Client Contents
Introduction Familiarization of User Interface Finding Help Test Tool Configuration Testing & Debugging Script Customization and Advanced Debugging Next Steps
3
UACTT Training - Client Introduction (1 of 3)
What is it? A specialized UA Server & Client (hybrid) designed to test a UA Client for compliance. Where is it? Who can get it? OPC Foundation Corporate Members What is tested? UA Servers and/or UA Clients Coverage? Most base/core services. Several UA profiles, more coming soon… Extensible? Yes, you can add your own tests. Easy to use? Yes, once you’ve learned the basics. Your UA Server UACTT Your UA Client You 4/19/2012 © 2012 OPC Foundation
4
UACTT Training - Client Introduction (2 of 3)
How it works: Each Service is tested manually to see: a. if a service-call is made correctly b. if the client handles valid responses correctly c. if the client handles invalid responses correctly Test authors? Compliance Working Group Developers? Compliance Working Group Can I help? Absolutely! We always need help creating test-cases and test-scripts, and for testing. Contact 4/19/2012 © 2012 OPC Foundation
5
UACTT Training - Client Introduction (3 of 3)
How do I pass? Your product must pass all tests in all selected profiles and/or conformance units. Am I Certified? Passing the UACTT 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? The Certification Test Labs use the same version. Use CTT When? The best time is during product development. All UA products must pass the UACTT prior to release. Additional Help: Complete help-documentation is provided with the UACTT. Test-case documentation is also provided. 4/19/2012 © 2012 OPC Foundation
6
UACTT Training - Client Launching UACTT (1 of 1)
Windows Vista/7: Start > All Programs > OPC Foundation > Unified Architecture > Compliance Test Tool > Compliance Test Tool (CTT) Windows 8: Start > Compliance Test Tool (CTT) 4/19/2012 © 2012 OPC Foundation
7
UACTT Training - Client Familiarization (1 of 4)
There are (by default) 3 “widgets” to the right: Help: quick access to documentation Objects: simple listing of UA object names Object Properties: simple listing of properties and methods of the currently selected object. 4/19/2012 © 2012 OPC Foundation
8
UACTT Training - Client Familiarization (2 of 4)
There are (by default) 3 “widgets” to the left: Profiles: A list of all UA Client Profiles. Conformance Units: A list of all UA Client Conformance Units and of all test-scripts. Library: An area where reusable script components are stored. 4/19/2012 © 2012 OPC Foundation
9
UACTT Training - Client Familiarization (3 of 4)
There are (by default) 3 “widgets” at the bottom: Results: a hierarchical audit-log of test activities and results. Script Output: a verbose trace of test-script activity. Trace: a generalized trace of UACTT activity. See the complete details of each Service call request and response here UA Service calls are listed here 4/19/2012 © 2012 OPC Foundation
10
UACTT Training - Client Familiarization (4 of 4)
The Client Trace widget contains a powerful Filter capability for selecting which UA calls to list in the trace. Checked services are displayed; unchecked are hidden (but still logged). 4/19/2012 © 2012 OPC Foundation
11
UACTT Training - Client Finding Help (1 of 2)
Complete documentation is available from the Contents option in the Help menu. Documentation includes a user-guide and other useful testing tips. 4/19/2012 © 2012 OPC Foundation
12
UACTT Training - Client Finding Help (2 of 2)
All test-cases used by the Lab are exported into HTML pages that are available with the UACTT. Test-case documentation can be launched from the main documentation or from the Help widget. 4/19/2012 © 2012 OPC Foundation
13
UACTT Training - Client Test Tool Configuration (1 of 6)
Normally, a Client connects to a Server directly. When using the UACTT we must force the Client to connect to the CTT; the CTT will connect to the UA Server – as a proxy. Normal Client/Server relationship Using CTT as a Gateway Your UA Server Your UA Client You Your UA Server The CTT acts as a “pass through” UACTT Your UA Client You 4/19/2012 © 2012 OPC Foundation
14
UACTT Training - Client Test Tool Configuration (2 of 6)
After launching the UACTT you must create a new Project. You must choose a Server or Client project type, and then specify the project name and save-location. The newly created CTT project contains a copy of all test-scripts, script library, and a certificate store. 4/19/2012 © 2012 OPC Foundation
15
UACTT Training - Server Test Tool Configuration (3 of 6)
We must configure the CTT to connect to the UA Server and also to expose an endpoint for the UA Client… Step 1. Enter the EndPoint URL for the UA Server you want to consume data from. Note: The Advanced folder contains settings that can be ignored. Step 2. Copy the “Endpoint URL” value and paste it into your Client. Step 3. Click the OK button. 4/19/2012 © 2012 OPC Foundation
16
UACTT Training - Server Test Tool Configuration (4 of 6)
Here’s a real-world setup using the OPC Foundation DataAccess sample Server & Client… (a) DA Client to CTT (Endpoint URL); (b) CTT to DA Server (Underlying Server URL). 4/19/2012 © 2012 OPC Foundation
17
UACTT Training - Server Test Tool Configuration (5 of 6)
Your Client will probably call FindServer or GetEndpoints and then bypass the CTT. To avoid this we must modify FindServers/GetEndpoints so all EndpointUrls’ point to the CTT. Step 2. Click Execute current script… Step 3. In your UA Client: make your connection to the UA CTT endpoint… Step 1. Open (double-click) Start-FindServers-Intercept.js from the Library Step 4. The UA CTT will inject its own Endpoint into FindServers and GetEndpoints 4/19/2012 © 2012 OPC Foundation
18
UACTT Training - Server Test Tool Configuration (6 of 6)
You UA Client should now be connected to your UA Server via the UA CTT… 4/19/2012 © 2012 OPC Foundation
19
UACTT Training - Client Testing & Debugging (1 of x)
First, test a UA Client’s normal behavior, such as a Read operation and observe the behavior… Step 1. Observe the natural “call” made by the UA Client. Step 4. Invoke the Read operation in your UA Client and observe the behavior of your UA Client. Here, the purple line indicates the UACTT has modified the original server response (to force an error). Step 3. Click Execute current script… Step 2. Double-click a script to be used for testing… 4/19/2012 © 2012 OPC Foundation
20
UACTT Training – Client Testing & Debugging (2 of x)
When ready to move onto the next UA Service call to test, you will probably need to clear the event handler to prevent further injections. Here’s how… Step 2. Click Execute current script… Step 1. Double-click DetachHandlers.js… Step 3. Open your next script (for testing) in the next [applicable] conformance unit.
21
UACTT Training - Client Script Customization
You can add your own scripts to a conformance unit! Here’s how… 4/19/2012 © 2012 OPC Foundation
22
UACTT Training - Server Next Steps…
Once your UA Client passes all applicable tests: Conduct Interoperability Testing Conduct Behavior Testing Conduct Resource-efficiency Testing Request Certification in the Test Lab: This information is available in the CTT Test-Cases help pages. 4/19/2012 © 2012 OPC Foundation
23
UACTT Training - Client The End!
Download: Certification: Lab Testing: Bug Tracker: Contact:
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.