OpenTTCN/Training/TTCN-3 Basics/Exercises/1.2
From OpenTTCN
Exercise 1.2: Creating and manipulating testing sessions (= "projects")
Besides needing a running OpenTTCN server you need a testing session that is used to hold, for example, test suite (one or multiple TTCN-3 modules) and values of module parameters. Goal: In this exercise we are learning how to create and manipulate testing sessions.
Step 1: OpenTTCN server is running
During the previous exercise you started OpenTTCN server and it should be already running. If you don't have OpenTTCN running, you need to start it now.
- Hint: "ot start"
Step 2: Check available session command options
Type "session" (and press return) in the command prompt and the session command displays you all available command options.
Step 3: List available testing sessions (first time)
Using information that you acquired during Step 2, list existing testing sessions. If you have just installed OpenTTCN Tester and you have not yet created any testing sessions, then the list of existing testing sessions is empty, and the previous command did not print anything.
Step 4: Create a new testing session
Using information that you acquired during Step 2, create a new testing session called "MySession". Create a second testing session called "MySession2".
Step 5: List available testing sessions (second time)
Using information that you acquired during Step 2, list existing testing sessions again as you did during Step 3. The list of existing testing sessions should now contain at least the testing sessions you created during Step 4.
Step 6: Check status of a testing session
Using information that you acquired during Step 2, check the status of "MySession" testing session that you created during Step 3. Because you have just created the "MySession" testing session its status is rather empty. We can check the status again later after adding more information into the testing session.
Step 7: Delete a testing session
Using information that you acquired during Step 2, delete "MySession2" testing session that you created during Step 3. After deletion of the "MySession2" testing session you can list existing testing sessions again to make sure the session is deleted.
Summary
Great! You have just completed your second OpenTTCN exercise. During this exercise you learned how to create, list, and delete testing sessions and how to check the status of a particular testing session. You have seen again that running OpenTTCN commands without arguments displays you a list of available command options. You are now ready to proceed to the next exercise to learn how to load a TTCN-3 module into a testing session.
