Presentation is loading. Please wait.

Presentation is loading. Please wait.

Unified Architecture Training Compliance Test Tool (UACTT) Introduction to the UA CTT for Client Testing Press SPACE to advance through the slides.

Similar presentations


Presentation on theme: "Unified Architecture Training Compliance Test Tool (UACTT) Introduction to the UA CTT for Client Testing Press SPACE to advance through the slides."— Presentation transcript:

1 Unified Architecture Training Compliance Test Tool (UACTT) Introduction to the UA CTT for Client Testing Press SPACE to advance through the slides.

2 Introduction Familiarization of User Interface Finding Help Test Tool Configuration Testing & Debugging Script Customization and Advanced Debugging Next Steps UACTT Training - Client Contents

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?http://www.opcfoundation.org/ua/ctthttp://www.opcfoundation.org/ua/ctt 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 youve learned the basics. 4/19/2012© 2012 OPC Foundation3 UACTT Your UA Server Your UA Client You

4 UACTT Training - Client Introduction (2 of 3) 4/19/2012© 2012 OPC Foundation4 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 compliance@opcfoundation.orgcompliance@opcfoundation.org

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 Foundation5

6 UACTT Training - Client Launching UACTT (1 of 1) 4/19/2012© 2012 OPC Foundation 6 Windows Vista/7: Start > All Programs > OPC Foundation > Unified Architecture > Compliance Test Tool > Compliance Test Tool (CTT) Windows 8: Start > Compliance Test Tool (CTT)

7 UACTT Training - Client Familiarization (1 of 4) 4/19/2012© 2012 OPC Foundation7 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.

8 UACTT Training - Client Familiarization (2 of 4) 4/19/2012© 2012 OPC Foundation8 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.

9 UACTT Training - Client Familiarization (3 of 4) 4/19/2012© 2012 OPC Foundation9 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. UA Service calls are listed here See the complete details of each Service call request and response here

10 UACTT Training - Client Familiarization (4 of 4) 4/19/2012© 2012 OPC Foundation10 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).

11 UACTT Training - Client Finding Help (1 of 2) 4/19/2012© 2012 OPC Foundation11 Complete documentation is available from the Contents option in the Help menu. Documentation includes a user-guide and other useful testing tips.

12 UACTT Training - Client Finding Help (2 of 2) 4/19/2012© 2012 OPC Foundation12 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.

13 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. UACTT Training - Client Test Tool Configuration (1 of 6) Normal Client/Server relationshipUsing CTT as a Gateway 4/19/2012© 2012 OPC Foundation 13 UACTT Your UA Server Your UA Client The CTT acts as a pass through Your UA Server Your UA Client You

14 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. UACTT Training - Client Test Tool Configuration (2 of 6) 4/19/2012© 2012 OPC Foundation14 The newly created CTT project contains a copy of all test- scripts, script library, and a certificate store.

15 We must configure the CTT to connect to the UA Server and also to expose an endpoint for the UA Client… UACTT Training - Server Test Tool Configuration (3 of 6) 4/19/2012© 2012 OPC Foundation15 Step 3. Click the OK button. 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.

16 Heres 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). UACTT Training - Server Test Tool Configuration (4 of 6) 4/19/2012© 2012 OPC Foundation16

17 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. UACTT Training - Server Test Tool Configuration (5 of 6) 4/19/2012© 2012 OPC Foundation17 Step 1. Open (double-click) Start-FindServers-Intercept.js from the Library Step 2. Click Execute current script… Step 3. In your UA Client: make your connection to the UA CTT endpoint… Step 4. The UA CTT will inject its own Endpoint into FindServers and GetEndpoints

18 You UA Client should now be connected to your UA Server via the UA CTT… UACTT Training - Server Test Tool Configuration (6 of 6) 4/19/2012© 2012 OPC Foundation18

19 First, test a UA Clients normal behavior, such as a Read operation and observe the behavior… UACTT Training - Client Testing & Debugging (1 of x) 4/19/2012© 2012 OPC Foundation19 Step 1. Observe the natural call made by the UA Client. Step 2. Double-click a script to be used for testing… Step 3. Click Execute current script… 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 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).

20 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. Heres how… UACTT Training – Client Testing & Debugging (2 of x) Step 1. Double-click DetachHandlers.js… Step 2. Click Execute current script… Step 3. Open your next script (for testing) in the next [applicable] conformance unit.

21 You can add your own scripts to a conformance unit! Heres how… UACTT Training - Client Script Customization 4/19/2012© 2012 OPC Foundation21

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: http://www.opcfoundation.org/Compliance-Certification/A1-Application.pdf http://www.opcfoundation.org/Compliance-Certification/A1-Application.pdf 4/19/2012© 2012 OPC Foundation22 This information is available in the CTT Test-Cases help pages.

23 Download: www.opcfoundation.org/ua/cttwww.opcfoundation.org/ua/ctt Certification: www.opcfoundation.org/certificationwww.opcfoundation.org/certification Lab Testing: http://www.opcfoundation.org/lab/signuphttp://www.opcfoundation.org/lab/signup Bug Tracker: www.opcfoundation.org/mantiswww.opcfoundation.org/mantis Contact: compliance@opcfoundation.orgcompliance@opcfoundation.org UACTT Training - Client The End!


Download ppt "Unified Architecture Training Compliance Test Tool (UACTT) Introduction to the UA CTT for Client Testing Press SPACE to advance through the slides."

Similar presentations


Ads by Google