Hi @naveenbajaj,
The limitation of Abacus automation is that you cannot configure a complete test from start to finish using only Tcl automation. There are things in the GUI that don't have equivalent functionality available on the API. Having said that, once a test is configured in the GUI and saved, you can run it and modify it using Tcl.
For new users, there is a library of sample scripts for each window/function included in the TCL folder (C:\Abacus 5000\6.22\TCL\Samples).
Phone numbers are configured by sets, own and external.
After loading an Abacus environment to Tcl, to look at and save a phone book:
epdb GetPhonebookBySet “Analog” “Subscriber” “1” “External” #This will retrieve the existing external phone book to display to screen
::aba::WriteToFile C:/text [epdb GetPhoneBookBySet “Analog” “Subscriber” “1” “External”] #This will create a text file containing the phone book information for external set 1, called c:/text.txt
Use the phone book text file as a template to create additional phone books to use later.
To load a phone book file and validate it before running a test:
epdbSetPhoneBookBySet “Analog” “Subscriber” “1” “External” [::aba::ReadFromFile c:/text_1.txt} #This will load a text file into the test environment for set 1
epdb GetPhoneBookBySet “Analog” “Subscriber” “1” “External” # Will validate that the text file is loaded into the phonebook for set 1
Hope this helps!
Debbie
40 People are following this question.