Creating a Generic TCC file for the TestShell Service Shell #32
Replies: 3 comments
-
|
Hi Kimo, Will it be ok to use xml file instead of tcc? Not sure if the following may work out for you. Have a template xml test file, and in it have Port elements like this: <Port id="7143" ... ... </Port> Then based on the actual ports in the sandbox, e.g. ['Port //4/15', '//172.16.254.254/4/15'; 'Port //4/16', '//172.16.254.254/4/16'], replace the Location and Name values, save the modified file and use it as the actual test file. Song Chen (Song.C) - 02/24/2021 10:47 AM
|
Beta Was this translation helpful? Give feedback.
-
|
To load a configuration, you need to copy the names of the ports in the tcc file into the Logical Name attributes of the Ports sub-resources in the reservation. If the name in the tcc is 'Port //3/1' then this is what you should place in the Logical name attribute. In you case the name in the tcc is 'Port //3/1' but the logical name attributes have values of Port //2/8' and 'Port //2/9'. A good port name in tcc should reflect the port role in the configuration, not it's location. For example, Client, Server etc. I suggest you create your tcc with meaningful names, regardless of CS. Then set those names in the Logical Name attribute. I don't think you should adjust your tcc to the reservation but the other way around - adjust your reservation to the tcc. If you have two tcc files with different port roles, for example in one tcc you have Client and Server, and in another you have User and Router then probably they are used with different test beds, hence different blueprints, so again, you can set different Logical Names in the different blueprints. Yoram Shamir (Yoram.S) - 02/27/2021 07:53 AM
|
Beta Was this translation helpful? Give feedback.
-
|
Here is a sample script that writes to the XML port information. Note how the address is formatted, you'll have to modify it from CloudShell's info (there are often Modules included that need to be stripped out). import csv import xml.etree.ElementTree as ET Kimo Saper (ksaper) - 03/01/2021 09:35 AM
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We keep getting this error when we try to use a new TCC file.
We're in an iterative cycle right now.
If the names of the ports don't match in the blueprint, it throws the error.
So how do they change the name in TestCenter when generating the TCC file so it's generic?
- Specifically what and where?
- Any specific names to use
- Previously with TestShell it was Server1 & Client1 (if memory serves)
This is the error: Error: TgnErrorDescription: Configuration port "Port //3/1" not found in reservation ports dict_keys(['Port //2/8', 'Port //2/9'])
Parameters:
I'm trying to solve this in a way going forward, so we teach them how to write the output file in TestCenter correctly the first time so it's going to be useable with any port that's happens to be in the blueprint.
Kimo Saper (ksaper) - 02/24/2021 09:55 PM
· 5353 ·
Beta Was this translation helpful? Give feedback.
All reactions