![]() |
| The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
|
Post Reply
|
| Author | |
bbeswick
Newbie
Joined: February 03 2004 Location: United States Status: Offline Points: 1 |
Post Options
Thanks(0)
Quote Reply
Topic: Automated TestingPosted: February 03 2004 at 5:05am |
|
I am interested in using AccuTerm 2K2 to assist us with automated testing of our character-based application. We are using Rational Robot. The problem is that Robot doesn't "see" the characters on the AccuTerm window. My idea is: write a script in AccuTerm that will open an auxillury window that will contain:
- fill-ins to accept upper-left and lower-right screen coordinates - a "Get" button that, when clicked, fetches the text block from the screen and places it in a Windows-style editor so Robot can inspect the contents of the editor. Has anyone tried to do such a thing? This doesn't sound horrably hard but I'm not really sure how to start; does anyone care to privide me with some hints/clues? Any help you could provide is appreciated, Bryan |
|
![]() |
|
PSchellenbach
Admin Group
Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
Quote Reply
Posted: February 05 2004 at 5:32am |
|
You could certainly use a script to display a dialog box with col & row text boxes and get & put buttons and a text box for the screen contents. The problem with this is that the dialog is modal, which I think will keep the terminal session from responding while it is displayed.
Another approach that you might want to consider is to create a simple VB application that uses Automation to communicate with AccuTerm. The VB form could contain the same components, but since it is a separate application it would not prevent AccuTerm from responding. The VB app can access AccuTerm by using the GetObject( ) function to get a reference to the most recently opened instance of AccuTerm. This reference is for the AccuTerm object, and from it you can access the ActiveSession object. From the session object you can use the GetText( ) method to retrieve text from the terminal screen and the WriteText method to send data back to the host. |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |