Presentation is loading. Please wait.

Presentation is loading. Please wait.

Unified Architecture Training Compliance Test Tool (UACTT) Introduction to the UA CTT for Server 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 Server Testing Press SPACE to advance through the slides."— Presentation transcript:

1 Unified Architecture Training Compliance Test Tool (UACTT) Introduction to the UA CTT for Server 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 - Server Contents

3 UACTT Training - Server Introduction (1 of 3) What is it?A specialized UA Client designed to test a UA Server 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?Many base/core services. Several UA profiles, with more in-development Extensible?Yes, you can add your own tests. Easy to use?Yes, once you’ve learned the basics. 4/19/2012© 2012 OPC Foundation3 UACTT Your UA Server You

4 UACTT Training - Server Introduction (2 of 3) 4/19/2012© 2012 OPC Foundation4 How it works:Each Service 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 UA specifications Test authors?Compliance Working Group (cmpwg) Developers?Compliance Working Group Can I help?Absolutely! We always need help creating test-cases and test-scripts, and for testing. Contact

5 UACTT Training - Server 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?Yes, test-labs use the current release version(s). 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 - Server 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 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. UACTT Training - Server Familiarization (1 of 3) 4/19/2012© 2012 OPC Foundation7

8 UACTT Training - Server Familiarization (2 of 3) 4/19/2012© 2012 OPC Foundation8 There are (by default) 3 “widgets” to the left: Profiles: A list of all UA Profiles. Conformance Units: A list of all Conformance Units and of all test-scripts. Library: An area where reusable script components are stored.

9 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. UACTT Training - Server Familiarization (3 of 3) 4/19/2012© 2012 OPC Foundation9

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

11 UACTT Training - Server Finding Help (2 of 2) 4/19/2012© 2012 OPC Foundation11 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.

12 UACTT Training - Server Test Tool Configuration (1 of 4) 4/19/2012© 2012 OPC Foundation12 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.

13 We must configure the CTT to connect to the UA Server. Open the Settings and configure as shown above…. UACTT Training - Server Test Tool Configuration (2 of 4) 4/19/2012© 2012 OPC Foundation13 Step 1. Enter the EndPoint URL for the UA Server you will test. Step 2. Click the Apply button. Note: The Advanced folder contains settings that can be ignored.

14 UACTT Training - Server Test Tool Configuration (3 of 4) 4/19/2012© 2012 OPC Foundation14 Click Accept Permanently to trust the application The first time you connect to your Server you will need to accept/trust the Application Certificate. It’s recommended to permanently trust the certificate. Once trusted, you can browse the server address-space.

15 UACTT Training - Server Test Tool Configuration (4 of 4) 4/19/2012© 2012 OPC Foundation15 Each Folder contains settings for you to configure the NodeIds to be used during testing Drag-n-drop the Nodes from the browser (right) to the setting (left) The UACTT [currently] requires manual configuration by specifying which UA Nodes to test against… Click the References tab to view forward/inverse references

16 UACTT Training - Server Testing & Debugging (1 of 3) 4/19/2012© 2012 OPC Foundation16 Step 1. Double-click 001.js in the Attribute Read/Test Cases folder. The script will open in a tab. Step 1. Double-click 001.js in the Attribute Read/Test Cases folder. The script will open in a tab. Step 2. Click “Execute Current Script”. Step 3. Check the Script Output tab to make sure the connection/test was successful. First, test the connection to the UA Server by using a test-script…

17 Second, run a compliance test for conformance units and/or profiles… UACTT Training - Server Testing & Debugging (2 of 3) 4/19/2012© 2012 OPC Foundation17 Use checkboxes to select an entire Conformance Unit, or Conformance Group. Use checkboxes to select one or more Profiles, which automatically checks the applicable Conformance Units. Step 1. Choose the tests to run… You can use either tab: Conformance Units and/or Profiles. Step 2. Click Start Debug Run

18 UACTT Training - Server Testing & Debugging (3 of 3) 4/19/2012© 2012 OPC Foundation18 Step 1. Perhaps change the session settings by changing the UserAuthenticationPolicy etc. Step 2. Perhaps change the SecureChannel configuration. Always start with None (no security) because troubleshooting is simpler. Perhaps you might test using a secure connection, or a session based on a login…

19 UACTT Training - Server Debugging (1 of 2) 4/19/2012© 2012 OPC Foundation19 Results Tab provides an audit-log of testing activities. The example above shows an entry which states that an incorrect error code was received. After a test-run, the Results widget contains a hierarchical audit trail of results…

20 UACTT Training - Server Debugging (2 of 2) 4/19/2012© 2012 OPC Foundation20 Standard debugging tools: step into, step over, step out etc. Powerful watch window. Access to call-stack, breakpoints, and a list of loaded-scripts etc. View the code in the interactive code-display tab. View output from the debug- console, console, and error-log. Open a script in the editor, and then click Start current script in debugger Use the integrated debugger to step-through a test-script…

21 Add your own scripts to a conformance unit… UACTT Training - Server Script Customization 4/19/2012© 2012 OPC Foundation21

22 UACTT Training - Server Advanced Debugging (1 of 3) 4/19/2012© 2012 OPC Foundation22 What is it?An ability to use a 2 nd CTT to neutrally observe the 1 st. Why?The UA calls can be easily seen & filtered. The trace output can be saved & opened later. What’s needed?2 UA CTT instances running: a. Your Server CTT project b. A Client CTT project Coverage?This method requires an insecure channel between the 1 st UA CTT and your downstream UA Server. All OPC UA calls can be traced. More Info?See the Client Test presentation.

23 UACTT Training - Server Advanced Debugging (2 of 3) 4/19/2012© 2012 OPC Foundation23 UA Server CTT Project UA Client CTT Project UA Server (downstream) opc.tcp://localhost:4841 Open 2 CTTs side-by-side; 1x Server test mode and 1x Client test mode.

24 Execute a test-script in the Server-CTT; observe results in Client-CTT… UACTT Training - Server Advanced Debugging (3 of 3) 4/19/2012© 2012 OPC Foundation24 UA Server CTT Project UA Client CTT Project UA Server (downstream) opc.tcp://localhost:4841 Select a test-script and then run it. Observe the calls in the 2 nd CTT (client test mode). Observe ALL request & response parameters of a service call

25 UACTT Training - Server Next Steps… Once your UA Server passes all applicable CTT tests: Conduct Interoperability Testing Conduct Behavior Testing Conduct Resource-efficiency Testing Request Certification in the Test Lab: 4/19/2012© 2012 OPC Foundation25 This information is available in the CTT Test-Cases help pages.

26 Download: Certification: Lab Testing: Bug Tracker: Contact: UACTT Training - Server The End!


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

Similar presentations


Ads by Google