US20040083089A1 - System and method for coordinated operation or a plurality of computers - Google Patents

System and method for coordinated operation or a plurality of computers Download PDF

Info

Publication number
US20040083089A1
US20040083089A1 US10/280,977 US28097702A US2004083089A1 US 20040083089 A1 US20040083089 A1 US 20040083089A1 US 28097702 A US28097702 A US 28097702A US 2004083089 A1 US2004083089 A1 US 2004083089A1
Authority
US
United States
Prior art keywords
computer
program segment
program
segment
script
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US10/280,977
Inventor
Brian Wade
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
International Business Machines Corp
Original Assignee
International Business Machines Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by International Business Machines Corp filed Critical International Business Machines Corp
Priority to US10/280,977 priority Critical patent/US20040083089A1/en
Assigned to INTERNATIONAL BUSINESS MACHINES CORPORATION reassignment INTERNATIONAL BUSINESS MACHINES CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: WADE, BRIAN K.
Publication of US20040083089A1 publication Critical patent/US20040083089A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/105Program control for peripheral devices where the programme performs an input/output emulation function
    • G06F13/107Terminal emulation

Definitions

  • This invention relates generally to computer systems and networks and deals more particularly with systems and methods by which a single computer can control the operation of a plurality of other computers in a coordinated way.
  • Telnet and similar protocols are often implemented on top of a generalized data exchange method, such as a TCP/IP socket connection.
  • a program running on the local computer can replace the local terminal and the local operator.
  • the local program being cognizant of the Telnet protocol, can use TCP/IP to connect to the remote computer, send it commands, and receive its responses. Further, the local program can decode those responses and condition subsequently transmitted commands on them.
  • the local program controls the remote computer as a human operator might.
  • the remote computer is unable to detect that it is being operated by a program running on the local computer, instead of by a human operator at the local terminal.
  • the local computer is exerting control over the remote computer, we call the local computer the “master” computer or “control” computer, and we call the controlled computer the “subordinate” computer.
  • U.S. Pat. No. 5,371,883 discloses a method of testing programs in a distributed environment.
  • a central repository is associated with a control computer for one of several computers to be tested.
  • Test cases are stored in the central repository.
  • the test cases are specific sequences of inputs or items of data which are designed to exercise a test program running in a test computer.
  • a control program in the control computer forwards instructions from a test case to one or more test programs to be executed. In this manner, the control program maintains control of the sequence of execution.
  • test program logs the results of the test cases, tracks the test cases that were performed and coordinates the test cases.
  • the master computer it is occasionally necessary to use the master computer to control a plurality of subordinate computers to operate in a concurrent, coordinated manner, instead of in a serial manner or in a concurrent but unrelated manner.
  • the master computer it might be desirable for the master computer to operate a suite of cooperating programs intended to run concurrently on the plurality of subordinates. If a human operator were performing this task, he might first type a “start” command on one subordinate, wait for said subordinate to indicate that it has started, and then type a corresponding “start” command on another subordinate.
  • the program When a program replaces the human operator in this scenario, the program must issue the commands to the subordinates in the correct sequence, conditioning its actions on the timing of the receipt of appropriate responses from the subordinates.
  • an object of the present invention is to provide a program at a master computer to concurrently operate a plurality of cooperating programs at other computers in a manner which emulates human operation.
  • Another object of the present invention is to conduct such operation without requiring special coordination software in the subordinate computers.
  • the invention resides in a computer program product for execution at a first computer to emulate manual user input at a first computer to operate second and third computers.
  • the program product includes a computer readable medium and the following programming recorded on the medium.
  • a first program segment requests initialization of communication between the first computer and the second and third computers.
  • a second program segment interacts with the second computer.
  • a third program segment interacts with the third computer.
  • the second program segment and the third program segment are executed effectively concurrently.
  • execution of the second program segment is suspended pending the third computer reaching a certain state and the state being communicated to the second program segment.
  • Such a state emulates human operator decisions and time that would be spent by the human operator in making operation decisions based on current events.
  • the computer programming includes
  • the predetermined time emulates a time that the human operator would wait before sending the second request to the second computer.
  • FIG. 1 is a block diagram illustrating a master computer, multiple interconnected subordinate computers, and key functions within the master computer according to the present invention.
  • FIGS. 2 ( a - e ) form a flow chart of a Script Processing function within the master computer of FIG. 1, according to the present invention.
  • FIG. 3 illustrates scripts embodying various features of the present invention.
  • FIG. 4 is a timing diagram illustrating timing of events resulting from the scripts of FIG. 3.
  • FIGS. 5, 6, and 7 illustrate scripts embodying various features of the present invention.
  • FIG. 1 illustrates a distributed computer system generally designated 10 embodying the present invention.
  • System 10 comprises a master computer 14 , subordinate computers 16 , 18 , 20 , etc. and communication medium there between.
  • the communication medium is Telnet although other known protocols and interfaces will also suffice.
  • Master computer 14 includes several functions pertaining to the present invention. The functions together comprise an interpreter for a script which a user writes with an ordinary text editor such as Notepad.
  • the script begins with initialization as illustrated in FIG. 5.
  • Initialization step 501 identifies each subordinate to which the master computer is to connect. For each such subordinate, the initialization step gives the name by which the subordinate will be known in the rest of the script (in 501 , “SUB 1” and “SUB2”). Further, continuing the Telnet example, the initialization section identifies each subordinate by IP address, so as to let the master establish a connection to the subordinate (connection parameters associated with other protocols would be appropriate if the other protocols were used in place of Telnet). Finally, for each subordinate, the initialization step names a later “script segment”.
  • a script segment 502 a or 502 b is a programmatic sequence of commands, expected responses, and other control words which collectively describe how the master is to interact with a subordinate.
  • the programmatic sequence contains control words describing how the progress of the interaction with a subordinate is to depend on the progress of the interactions with other subordinates.
  • a script will consist of one initialization section and one or more script segments. The master computer executes the script to exercise the subordinate computers 16 , 18 , and 20 as if the commands had been input by human operators seated at terminals directly attached to each of those subordinates.
  • a script segment 502 a might apply to more than one subordinate although there would be a different instance of the script for each subordinate.
  • the script author wanted the master computer to conduct exactly the same command-and-response conversation with 100 subordinates concurrently, he or she would write initialization step 501 to name each of the 100 subordinates and point each one to the very same script segment 502 a.
  • the master computer would instantiate script segment 502 a on each of the 100 subordinate connections. This is analogous to what happens on a Unix or Windows computer when the same program file runs concurrently in a plurality of processes.
  • Each script segment comprises one or more lines of code.
  • Each script line includes a control “verb” and one or more parameters as appropriate for the verb.
  • a “Send” verb is a command to transmit a line of text to the respective subordinate.
  • the line of text is indicated by a parameter associated with the verb.
  • a “Wait” verb indicates that a certain text string must be received from the respective subordinate computer before interaction with the subordinate can continue.
  • the text string is indicated by a parameter associated with the “Wait” verb.
  • Other verbs as described below, influence the ordering or timing of the transmissions to the subordinates. In other words, these other verbs define prerequisites for sending commands to the respective subordinate computers. These prerequisites includes the passage of time or the receipt of requisite responses from one or more other subordinate computers.
  • the ordering and timing of the processing of “Send” verbs emulates the decision-making process of a single human operator controlling the subordinate computers manually. For example, when attempting to generate computing load on a single subordinate, a human operator might type a command to start a load-inducing program, wait for the program to finish, delay some amount of time, and then type the load-inducing command again.
  • a script segment emulating this would contain the “Send” and “Wait” verbs described earlier.
  • the segment would contain an additional verb, “Delay”, that caused the master to wait a certain amount of time before proceeding.
  • the segment would contain some iteration verbs, perhaps to cause the master to enter the load-inducing command 1000 times.
  • a human operator in operating a distributed application, might need to type commands on a plurality of subordinates, in a specific sequence, so as to operate the distributed application correctly.
  • the operator might need to type “start_server” on subordinate 16 , wait for subordinate 16 to respond “server started”, and only then type “start_client” on subordinate 18 .
  • a script emulating this human operator's behavior would contain two script segments, one for subordinate 16 and the other for subordinate 18 . Each segment would include “Send” and “Wait” verbs.
  • the subordinate 18 segment would also contain a “SemWait” verb (described in more detail below), to cause interaction with subordinate 18 to be suspended until a semaphore has been signaled.
  • the subordinate 16 script would also contain a “SemSignal” verb (described in more detail below), to signal the semaphore and thereby restart the interaction with subordinate 18 at the appropriate moment.
  • FIG. 6, described below, with script segments 601 and 602 illustrates this.
  • Master computer 14 's processing of a script begins when Parsing function 40 reads the script from a file, identifies the initialization section of the script, identifies each script segment, and determines the names of the subordinates and the correspondence between subordinates and script segments.
  • an Establish Connection function 42 ( a ) establishes Telnet connections between master computer 14 and each of the subordinate computers identified in the initialization section, for example, subordinate computers 16 , 18 and 20 .
  • Telnet connection establishment is well known and comprises the following steps. First, a TCP socket is obtained. The socket is used to connect to the Telnet port on the subordinate computer. Then, a small amount of data is sent to the subordinate computer to negotiate the Telnet connection parameters.
  • a Script Processing function 44 begins using the Telnet connections to interact or “converse” with each subordinate according to the verbs in its designated script segment.
  • the conversations with the subordinates are conducted concurrently.
  • This concurrent execution can occur on different “threads” of a multithreaded master computer, if desired.
  • this concurrent execution can be carried out by a single, serial thread on the master computer, provided the master computer thread effectively divides its attention among the subordinates, in which case the execution is effectively concurrent.
  • Script Processing function 44 sends commands to the subordinate computers according to the verbs defined in the script segments.
  • the Script Processing function 44 is further illustrated by the flowchart of FIG. 2 which is executed for each subordinate computer concurrently with that of the other subordinate computers.
  • the general strategy of the Script Processing function is to advance each conversation with the respective subordinate computer as far as possible. When a subordinate conversation can no longer advance (for example, because its script segment requires a wait for a certain response text from the subordinate or a signal from another subordinate conversation), the master computer will suspend its interaction with that subordinate until the requisite event occurs.
  • the Script Processing function begins at step 100 , where the conversation has just been started and is therefore advanceable.
  • the Script Processing immediately moves to step 102 , reading a line of the corresponding script segment to determine the nature of the line (step 104 ).
  • This line will be the first line of the script segment if the conversation is just beginning or will be the next line for subsequent iterations of the flow chart of FIGS. 2 ( a ) through 2 ( e ).
  • each line from the script segment will consist of a verb and any parameters appropriate for the verb.
  • “Wait” instructs the Script Processing function to wait for the respective subordinate computer to emit a certain text string before proceeding. For example, if a human operator would ordinarily wait for a prompt string “Password:” before typing a logon password, the script segment would contain “WAIT Password:” to cause the master to wait for the string “Password:” before sending the password.
  • “TimedWait” instructs the Script Processing function to wait a certain amount of time before processing the next line of the script segment.
  • the duration of the timer is specified as a parameter to the “TimedWait” verb.
  • the “TimedWait” verb may be used in a script segment which emulates user think time. For example, the user may request data which is presented on a screen at his terminal, and the user must read the screen and decide what to do next before entering a new command. In this example, the “TimedWait” emulates the time required by the user to read the screen and decide what to do next.
  • “SemWait” instructs the Script Processing function to wait for a named signal from some other subordinate conversation before processing the next line of the script segment containing the “SemWait”.
  • the identity of the subordinate conversation on which to wait and the name of the signal for which to wait are given as parameters to the “SemWait” verb.
  • the “SemWait” verb may be used in a script which emulates a single user concurrently using two different keyboards to control two different subordinate computers. In this scenario, the user may wait on sending a command to one subordinate computer via one keyboard until having received and evaluated a response from another subordinate computer.
  • the “SemWait” verb can emulate the decision making process of the user in sequencing the sending of commands through the two different keyboards.
  • “SemSignal” instructs the Script Processing function to provide a named signal so that one or more other subordinate conversations can proceed. Typically these other subordinate conversations are suspended waiting for this named signal pursuant to the foregoing “SemWait” verb. The provision of the “SemSignal” might enable these other subordinate conversations to proceed.
  • the name of the signal to provide is given by a parameter to SemSignal.
  • a script author will use SemSignal to let one or more subordinate conversations proceed after an appropriate response has been received from a certain subordinate.
  • Each waiting subordinate conversation uses SemWait to listen for the named signal and proceed to the next line of its corresponding script segment only after it receives the signal. Step 601 of FIG.
  • Step 602 of FIG. 6 illustrates the login of an emulated human operator named “bkw” and then the SemSignal verb.
  • Step 602 of FIG. 6 illustrates the login of an emulated user “arthur” and then the corresponding SemWait verb.
  • script segment 601 illustrates the use of SemSignal to provide signal “FRED” to script segment 602 .
  • Script segment 602 illustrates the use of SemWait to wait for subordinate SUB1 to provide signal “FRED”.
  • MultiWait instructs the Script Processing function to wait for all subordinate conversations sharing a given name prefix to provide a certain signal.
  • the name prefix and the signal name are given by parameters to the MultiWait verb.
  • the “MultiWait” verb is used to let one or more subordinate conversations wait for a whole class of subordinate conversations to reach a certain point, and only then do the waiting subordinate conversations continue processing.
  • initialization step 701 defines five “STUDENT” subordinates, named STUDENT1, . . . , STUDENT5, all running script segment 702 .
  • Initialization step 701 also defines three “TEACHER” subordinates, named TEACHER1, . . .
  • MultiSignal instructs the Script Processing function to provide the named signal, for capture by one or more other subordinate conversations' MultiWait verb.
  • FIG. 7 also illustrates the use of MultiSignal, wherein each TEACHER subordinate is waiting for the “DONE” signal from each STUDENT subordinate before advancing.
  • Each “control directive” may also include one of the following control words or verbs which changes the Script Processing function's flow through the script segment, but is not directly related to advanceability of a subordinate conversation or the sending or receiving of data thereon:
  • Do instructs the Script Processing function to iterate over a portion of a script segment a certain number of times. The end of the sequence is marked by a corresponding “End” directive. The requisite number of iterations is given by a parameter to the “Do” verb.
  • IfRun instructs the Script Processing function to branch within the script segment based on whether the name of the subordinate conversation matches one of the subordinate name prefixes specified as a parameter to “IfRun”. If the subordinate name matches one of the prefixes, processing continues at the next line. If there is no match, control transfers to the corresponding “EndIfRun” directive.
  • Each “control directive” may also include one of the following control words or verbs which causes the Script Processing function to take specific immediate actions which do not bear on the interaction with the subordinate computers:
  • Checkpoint which instructs the Script Processing function to write to persistent storage (for example, a disk file) all of the subordinate responses it has received so far, so that in the event of a failure, some responses will have been saved.
  • step 104 the Script Processing function examines the “verb” in the script line. If the verb is “Send” (decision 106 ), then the Script Processing function sends the associated line of text (indicated by the parameter for the Send verb) to the subordinate (step 108 ). Then, the Script Processing function returns to step 102 to process the next line of this script segment. However, if the current line of the script segment does not contain a “Send” verb, then step 108 is bypassed, and the Script Processing function determines if the verb is “Wait” (decision 110 ). If so, the Script Processing function waits for some text to arrive from the subordinate associated with the script segment (step 112 ).
  • the Script Processing function uses the “wait for data” and “read data” functions provided by the data transport protocol being used.
  • the Script Processing function uses the TCP socket function “select( )” to wait for data to arrive from the subordinate, and it then uses the TCP socket function “read( )” to collect the arrived data.
  • the Script Processing function examines it to determine whether the desired text has arrived yet (step 114 ). When the desired text arrives, the Script Processing function loops back to step 102 to process more lines from the script segment.
  • the Script Processing function determines if the verb is “TimedWait” (decision 120 ). If so, the Script Processing function records the wakeup time for this subordinate conversation (step 122 ). The “wakeup” time for a “TimedWait” verb is based on a timer value specified as a parameter to the “TimedWait” verb. Next, the Script Processing function waits until the specified timer has expired (decision 124 ). At that time, the Script Processing function loops back to step 102 to process more lines from the script segment.
  • the Script Processing function determines if the verb is “RandomWait” (decision 130 ). If so, the Script Processing function records the wakeup time for this subordinate conversation (step 132 ). The “wakeup” time for a “RandomWait” verb is based on a random time (within a specified range) generated by the Script Processing function. Next, the Script Processing function waits until the specified time has been reached (decision 134 ). At that time, the Script Processing function loops back to step 102 to process more lines from the script segment.
  • the Script Processing function determines if the verb is “MultiWait” (decision 140 ). Such a script segment line will also specify the name prefix for the set of subordinates for which this conversation is waiting and the name of the signal all of these subordinates must provide before the script segment bearing the MultiWait can proceed. If the verb is a “MultiWait”, the Script Processing function checks whether all of the specified subordinates have already provided the named signal (step 142 ). If so, the Script Processing function loops back to step 102 to process the next line of the script segment.
  • the Script Processing function repeats step 142 .
  • the Script Processing function loops back to step 102 to process more lines from the script segment.
  • the Script Processing function determines if the verb is “SemWait” (decision 150 ). Such a script segment line will also specify the name of the subordinate which will provide the signal and the name of the signal the subordinate will provide. If the verb is a “SemWait”, the Script Processing function checks whether the named subordinate has already provided the named signal (decision 152 ). If so, the Script Processing function loops back to step 102 to process the next line of the script segment. However, if the named subordinate has not yet provided the named signal, processing returns to decision 152 . When the named subordinate provides the named signal, the Script Processing function loops back to step 102 to process more lines from the script segment.
  • the Script Processing function determines if the verb is “SemSignal” (decision 160 ). If so, the Script Processing function records (step 162 ) that this subordinate conversation has provided the named signal. This will directly end the waiting of any subordinate conversation using SemWait (decision 152 ) to wait on this subordinate to emit this signal. The Script Processing function then loops back to step 102 to process more lines from the script segment.
  • the Script Processing function determines if the verb is “MultiSignal” (decision 170 ). If so, the Script Processing function records (step 172 ) that this subordinate conversation has provided the named signal. Like SemSignal (step 162 ), this will contribute toward the advancement of one or more other subordinate conversations which were suspended at a MultiWait verb (decision 142 ). The Script Processing function then loops back to step 102 to process more lines from the script segment.
  • the Script Processing function determines if the verb is a conditional verb—“If”, “IfEnd”, “Do”, “End”, “IfRun” or “EndIfRun” (decision 180 ). If so, the Script Processing function evaluates the condition (step 182 ). In the case of an “If” verb, the script segment will also state the requisite condition. The Script Processing function will determine if the requisite condition has been satisfied and locate the appropriate next line of the script segment (step 184 ). The appropriate line is either the very next line of the script or the first line after the corresponding “EndIf”.
  • the script segment will also state a number of iterations of a step or loop of steps to be performed, and the Script Processing function will iteratively execute them.
  • the end of the block of script segment statements is marked by “End”.
  • the script segment will also state the class of subordinates to which the steps apply.
  • the Script Processing function will determine if the requisite condition has been satisfied and locate the appropriate next line of the script segment (step 184 ).
  • the appropriate line is either the very next line of the script or the first line after the corresponding “EndIfRun”. For any of these conditionals, once it has located the appropriate next line, the Script Processing function returns to step 104 to evaluate the line.
  • the Script Processing function determines whether the verb is one of the minor verbs, such as “Say” or “Checkpoint” (decision 190 ). If so, the Script Processing function handles the verb accordingly (step 192 ) and then returns to step 102 to process more lines from the script segment.
  • the Script Processing function displays an error message for the user of the master computer, halts its interactions with the subordinate computers, and terminates (step 200 ).
  • master computer 14 advances each subordinate conversation according to the instructions specified in its associated script segment.
  • Subordinate conversations which have no requisite preconditions for completion or whose preconditions are satisfied from the outset may complete without ever waiting.
  • Other subordinate conversations whose script segments include a “Wait” may be executed until reaching this verb, and then be suspended until receiving the requisite response from a subordinate computer.
  • Other subordinate conversations whose script segments include a “TimedWait” or “RandomWait” verb may be executed until reaching these verbs, and then be suspended the requisite time before proceeding.
  • the Script Processing function notifies a Logging function 180 of the responses from the subordinates.
  • the Logging function duly records them.
  • the Script Processing function notifies an End Connection function 42 ( b ) to end the Telnet connection with the respective subordinate computer.
  • FIG. 3 illustrates a sample script that includes Wait, MultiWait, and MultiSignal verbs.
  • the script begins with initialization step 300 which defines four subordinates followed by their respective IP addresses. Three of the subordinates are in class S and are named S 1 , S 2 , and S 3 . The other subordinate is named T.
  • the script segment designated “S” is for each of the subordinates S 1 , S 2 and S 3 .
  • the script segment designated “T” is for subordinate T.
  • Script segment S begins at step 302 a, while script segment T begins at item 304 a. All four script segments, i.e. three instances of script segment S and one instance of script segment T, execute concurrently.
  • the master computer runs its Parsing function 40 (from FIG. 1) so as to determine the identities of the subordinates and the script segments they are to run.
  • the master computer next runs its Establish Connection function 42 (also from FIG. 1) so as to establish appropriate connections to the four subordinates.
  • the master computer begins its Script Processing function 44 , conversing with the four subordinates concurrently.
  • the Script Processing function advances each of the four subordinate conversations at its own pace, according to network speed, the speeds of the respective subordinate computers, and any wait conditions.
  • the Script Processing function performs one or more steps 302 b, whose contents are not relevant to this example, and then performs step 302 c, wherein it waits for the subordinate to respond with text containing a dollar sign “$”. (Unix practitioners will recognize the “$” as the prompt character, indicating the computer is ready to process another command.) After the “$” is received, the Script Processing function moves to step 302 d, at which it records that the respective subordinate has provided the signal “DONE”. With respect to its conversation with subordinate T, the Script Processing function in like manner has worked through steps 304 a and 304 b, and arrived at 304 c.
  • the Script Processing function cannot complete step 304 c on its conversation with subordinate T until it has completed step 302 d for each of its S 1 , S 2 , and S 3 conversations, that is, until each of the S subordinates has emitted the “DONE” signal.
  • the master computer cannot advance its subordinate conversation T to step 304 d until its conversations with S 1 , S 2 , and S 3 have all completed step 302 d. This achieves the synchronization of the operation of each of the four subordinate computers.
  • FIG. 4 illustrates one possible sequence of events that would satisfy the script of FIG. 3.
  • the scenario begins at time t 0 with the master establishing its connections to the four subordinates S 1 , S 2 , S 3 , and T.
  • the master accomplishes intermediate steps 302 b and 304 b with the four subordinates, the relative ordering and function actually performed by these steps not being relevant to the present example.
  • the master receives “$” from subordinate S 3 , thus satisfying the Wait at 302 c, and so at time t 6 accomplishes 302 d for subordinate S 3 , recording provision of signal “DONE”.
  • the master begins step 304 c for subordinate T, but finding the MultiWait condition unsatisfied, can advance its conversation with T no further.
  • the master detects receipt of “$” from subordinates S 1 and S 2 (step 302 c ) and records their provisions of signal “DONE” (step 302 d ).
  • the conversation with subordinate T becomes advanceable, because all of the S subordinates have emitted “DONE”.
  • the Script Processing function continues with subordinate S 1 , accomplishing 302 e, whose actual function is not relevant to the present example.
  • the master computer detects that S 1 , S 2 , and S 3 have all emitted the signal “DONE”, and so the Script Processing function completes step 304 c with T.
  • the master computer completes step 304 d with T.
  • the master continues with subordinates S 1 , S 2 , S 3 , and T through the rest of their script segments, description thereof not being relevant in this example.

Abstract

A computer program product for execution at a first computer to emulate manual user input at a first computer to operate second and third computers. The program product includes a computer readable medium and the following programming recorded on the medium. A first program segment requests initialization of communication between the first computer and the second and third computers. A second program segment interacts with the second computer. A third program segment interacts with the third computer. The second program segment and the third program segment are executed effectively concurrently. According to the second program segment, execution of the second program segment is suspended pending the third computer reaching a certain state and the state being communicated to the second program segment. Such a state emulates human operator decisions and time that would be spent by the human operator in making operation decisions.

Description

  • This invention relates generally to computer systems and networks and deals more particularly with systems and methods by which a single computer can control the operation of a plurality of other computers in a coordinated way. [0001]
  • One of the simplest ways in which humans can interact with computers is by way of line-mode commands and responses. This interaction begins with the human typing a command into the computer using a keyboard. The PC-DOS command “DIR”, the Unix command “Is”, and the CMS command “LISTFILE” are examples of such commands. The computer processes the command and then might print one or more lines of response text on a screen or on a roll of paper. The computer then issues a prompt (such as a question mark), indicating that it is ready for the next command. [0002]
  • Early computer networks extended this mode of interaction by offering the human operator the ability to use a local terminal and its associated local computer to issue commands to, and receive responses from, a remote computer. In such networks, a telecommunications protocol such as Telnet connects the local computer to the remote one. The data exchanged on the telecommunications link consists of the commands entered by the human operator on the local terminal and the responses generated by the remote computer. The local computer acts as intermediary between the human operator and the remote computer, forwarding commands from the local operator's terminal to the remote computer and printing the remote computer's responses on the local terminal. In this way the human operator conducts command-and-response interaction with the remote computer, the remote computer appearing to be local. [0003]
  • Telnet and similar protocols are often implemented on top of a generalized data exchange method, such as a TCP/IP socket connection. In such a case, a program running on the local computer can replace the local terminal and the local operator. The local program, being cognizant of the Telnet protocol, can use TCP/IP to connect to the remote computer, send it commands, and receive its responses. Further, the local program can decode those responses and condition subsequently transmitted commands on them. In other words, the local program controls the remote computer as a human operator might. The remote computer is unable to detect that it is being operated by a program running on the local computer, instead of by a human operator at the local terminal. In this scenario, when the local computer is exerting control over the remote computer, we call the local computer the “master” computer or “control” computer, and we call the controlled computer the “subordinate” computer. [0004]
  • One reason it is desirable for a master computer to operate a subordinate computer in this way is for the testing of programs within the subordinate computer for program debugging and other purposes. U.S. Pat. No. 5,371,883 discloses a method of testing programs in a distributed environment. A central repository is associated with a control computer for one of several computers to be tested. Test cases are stored in the central repository. The test cases are specific sequences of inputs or items of data which are designed to exercise a test program running in a test computer. A control program in the control computer forwards instructions from a test case to one or more test programs to be executed. In this manner, the control program maintains control of the sequence of execution. The results of the execution by the test programs are reported back to the control program which determines whether the results are correct. The control program may send additional instructions to the test programs depending on the foregoing results and startup parameters. In summary, the test program logs the results of the test cases, tracks the test cases that were performed and coordinates the test cases. [0005]
  • It is occasionally necessary to use the master computer to control a plurality of subordinate computers to operate in a concurrent, coordinated manner, instead of in a serial manner or in a concurrent but unrelated manner. For example, it might be desirable for the master computer to operate a suite of cooperating programs intended to run concurrently on the plurality of subordinates. If a human operator were performing this task, he might first type a “start” command on one subordinate, wait for said subordinate to indicate that it has started, and then type a corresponding “start” command on another subordinate. When a program replaces the human operator in this scenario, the program must issue the commands to the subordinates in the correct sequence, conditioning its actions on the timing of the receipt of appropriate responses from the subordinates. [0006]
  • Accordingly, an object of the present invention is to provide a program at a master computer to concurrently operate a plurality of cooperating programs at other computers in a manner which emulates human operation. [0007]
  • Another object of the present invention is to conduct such operation without requiring special coordination software in the subordinate computers. [0008]
  • SUMMARY OF THE INVENTION
  • The invention resides in a computer program product for execution at a first computer to emulate manual user input at a first computer to operate second and third computers. The program product includes a computer readable medium and the following programming recorded on the medium. A first program segment requests initialization of communication between the first computer and the second and third computers. A second program segment interacts with the second computer. A third program segment interacts with the third computer. The second program segment and the third program segment are executed effectively concurrently. According to the second program segment, execution of the second program segment is suspended pending the third computer reaching a certain state and the state being communicated to the second program segment. Such a state emulates human operator decisions and time that would be spent by the human operator in making operation decisions based on current events. [0009]
  • According to one feature of the present invention, the computer programming includes [0010]
  • a first command to send a first request to the second computer and a second command subsequent to the first command to send a second request to the second computer. There is a third command, between the first and second commands, to wait a predetermined time until executing the second command. The predetermined time emulates a time that the human operator would wait before sending the second request to the second computer.[0011]
  • BRIEF DESCRIPTION OF THE FIGURES
  • FIG. 1 is a block diagram illustrating a master computer, multiple interconnected subordinate computers, and key functions within the master computer according to the present invention. [0012]
  • FIGS. [0013] 2(a-e) form a flow chart of a Script Processing function within the master computer of FIG. 1, according to the present invention.
  • FIG. 3 illustrates scripts embodying various features of the present invention. [0014]
  • FIG. 4 is a timing diagram illustrating timing of events resulting from the scripts of FIG. 3. [0015]
  • FIGS. 5, 6, and [0016] 7 illustrate scripts embodying various features of the present invention.
  • DETAILED DESCRIPTION OF THE INVENTION
  • Referring now to the drawings in detail, wherein like reference numbers indicate like elements throughout, FIG. 1 illustrates a distributed computer system generally designated [0017] 10 embodying the present invention. System 10 comprises a master computer 14, subordinate computers 16, 18, 20, etc. and communication medium there between. By way of example, the communication medium is Telnet although other known protocols and interfaces will also suffice. Master computer 14 includes several functions pertaining to the present invention. The functions together comprise an interpreter for a script which a user writes with an ordinary text editor such as Notepad.
  • The script begins with initialization as illustrated in FIG. 5. [0018] Initialization step 501 identifies each subordinate to which the master computer is to connect. For each such subordinate, the initialization step gives the name by which the subordinate will be known in the rest of the script (in 501, “SUB 1” and “SUB2”). Further, continuing the Telnet example, the initialization section identifies each subordinate by IP address, so as to let the master establish a connection to the subordinate (connection parameters associated with other protocols would be appropriate if the other protocols were used in place of Telnet). Finally, for each subordinate, the initialization step names a later “script segment”. A script segment 502 a or 502 b is a programmatic sequence of commands, expected responses, and other control words which collectively describe how the master is to interact with a subordinate. In many cases the programmatic sequence contains control words describing how the progress of the interaction with a subordinate is to depend on the progress of the interactions with other subordinates. In general, a script will consist of one initialization section and one or more script segments. The master computer executes the script to exercise the subordinate computers 16, 18, and 20 as if the commands had been input by human operators seated at terminals directly attached to each of those subordinates.
  • It is important to realize that depending on the content of [0019] initialization step 501, a script segment 502 a might apply to more than one subordinate although there would be a different instance of the script for each subordinate. For example, if the script author wanted the master computer to conduct exactly the same command-and-response conversation with 100 subordinates concurrently, he or she would write initialization step 501 to name each of the 100 subordinates and point each one to the very same script segment 502 a. In this case the master computer would instantiate script segment 502 a on each of the 100 subordinate connections. This is analogous to what happens on a Unix or Windows computer when the same program file runs concurrently in a plurality of processes.
  • Each script segment comprises one or more lines of code. Each script line includes a control “verb” and one or more parameters as appropriate for the verb. For example, a “Send” verb is a command to transmit a line of text to the respective subordinate. The line of text is indicated by a parameter associated with the verb. A “Wait” verb indicates that a certain text string must be received from the respective subordinate computer before interaction with the subordinate can continue. The text string is indicated by a parameter associated with the “Wait” verb. Other verbs, as described below, influence the ordering or timing of the transmissions to the subordinates. In other words, these other verbs define prerequisites for sending commands to the respective subordinate computers. These prerequisites includes the passage of time or the receipt of requisite responses from one or more other subordinate computers. [0020]
  • The ordering and timing of the processing of “Send” verbs emulates the decision-making process of a single human operator controlling the subordinate computers manually. For example, when attempting to generate computing load on a single subordinate, a human operator might type a command to start a load-inducing program, wait for the program to finish, delay some amount of time, and then type the load-inducing command again. A script segment emulating this would contain the “Send” and “Wait” verbs described earlier. The segment would contain an additional verb, “Delay”, that caused the master to wait a certain amount of time before proceeding. Finally, the segment would contain some iteration verbs, perhaps to cause the master to enter the load-inducing command 1000 times. In another example, in operating a distributed application, a human operator might need to type commands on a plurality of subordinates, in a specific sequence, so as to operate the distributed application correctly. The operator might need to type “start_server” on [0021] subordinate 16, wait for subordinate 16 to respond “server started”, and only then type “start_client” on subordinate 18. A script emulating this human operator's behavior would contain two script segments, one for subordinate 16 and the other for subordinate 18. Each segment would include “Send” and “Wait” verbs. The subordinate 18 segment would also contain a “SemWait” verb (described in more detail below), to cause interaction with subordinate 18 to be suspended until a semaphore has been signaled. The subordinate 16 script would also contain a “SemSignal” verb (described in more detail below), to signal the semaphore and thereby restart the interaction with subordinate 18 at the appropriate moment. FIG. 6, described below, with script segments 601 and 602 illustrates this.
  • [0022] Master computer 14's processing of a script begins when Parsing function 40 reads the script from a file, identifies the initialization section of the script, identifies each script segment, and determines the names of the subordinates and the correspondence between subordinates and script segments. Next, an Establish Connection function 42(a) establishes Telnet connections between master computer 14 and each of the subordinate computers identified in the initialization section, for example, subordinate computers 16, 18 and 20. Telnet connection establishment is well known and comprises the following steps. First, a TCP socket is obtained. The socket is used to connect to the Telnet port on the subordinate computer. Then, a small amount of data is sent to the subordinate computer to negotiate the Telnet connection parameters. As noted above, other communication protocols and interfaces can also be used. After these connections are established, a Script Processing function 44 begins using the Telnet connections to interact or “converse” with each subordinate according to the verbs in its designated script segment. The conversations with the subordinates are conducted concurrently. This concurrent execution can occur on different “threads” of a multithreaded master computer, if desired. Alternatively, this concurrent execution can be carried out by a single, serial thread on the master computer, provided the master computer thread effectively divides its attention among the subordinates, in which case the execution is effectively concurrent. Script Processing function 44 sends commands to the subordinate computers according to the verbs defined in the script segments.
  • Occasionally a subordinate conversation reaches a point where, in accordance with the verbs in its designated script segment, the conversation must wait for an event, such as the lapse of a timer or the receipt of a signal from some other subordinate conversation. When such a point occurs, the master computer suspends its conversation with the subordinate and continues conversing with the others. [0023]
  • The [0024] Script Processing function 44 is further illustrated by the flowchart of FIG. 2 which is executed for each subordinate computer concurrently with that of the other subordinate computers. The general strategy of the Script Processing function is to advance each conversation with the respective subordinate computer as far as possible. When a subordinate conversation can no longer advance (for example, because its script segment requires a wait for a certain response text from the subordinate or a signal from another subordinate conversation), the master computer will suspend its interaction with that subordinate until the requisite event occurs.
  • For each subordinate conversation, the Script Processing function begins at [0025] step 100, where the conversation has just been started and is therefore advanceable. The Script Processing immediately moves to step 102, reading a line of the corresponding script segment to determine the nature of the line (step 104). This line will be the first line of the script segment if the conversation is just beginning or will be the next line for subsequent iterations of the flow chart of FIGS. 2(a) through 2(e). As noted above, each line from the script segment will consist of a verb and any parameters appropriate for the verb.
  • Each line from a script segment will contain one of the following dispatch control commands or “verbs”: [0026]
  • “Send” instructs the Script Processing function to send a line of text to the respective subordinate computer. [0027]
  • “Wait” instructs the Script Processing function to wait for the respective subordinate computer to emit a certain text string before proceeding. For example, if a human operator would ordinarily wait for a prompt string “Password:” before typing a logon password, the script segment would contain “WAIT Password:” to cause the master to wait for the string “Password:” before sending the password. [0028]
  • “TimedWait” instructs the Script Processing function to wait a certain amount of time before processing the next line of the script segment. The duration of the timer is specified as a parameter to the “TimedWait” verb. The “TimedWait” verb may be used in a script segment which emulates user think time. For example, the user may request data which is presented on a screen at his terminal, and the user must read the screen and decide what to do next before entering a new command. In this example, the “TimedWait” emulates the time required by the user to read the screen and decide what to do next. [0029]
  • “RandomWait”, like TimedWait, instructs the Script Processing function to wait some amount of time before processing the next line of the script segment. Unlike “TimedWait”, the amount of time to wait is random within a range prescribed by parameters to the “RandomWait” verb. A function within the master computer generates the random time. Like “TimedWait”, the “RandomWait” verb may be used in a script segment which emulates user think time because different (human) users will require different think times for any given scenario. “RandomWait” is probably more realistic than “TimedWait” for emulating think time, but nevertheless both verbs are provided. [0030]
  • “SemWait” instructs the Script Processing function to wait for a named signal from some other subordinate conversation before processing the next line of the script segment containing the “SemWait”. The identity of the subordinate conversation on which to wait and the name of the signal for which to wait are given as parameters to the “SemWait” verb. The “SemWait” verb may be used in a script which emulates a single user concurrently using two different keyboards to control two different subordinate computers. In this scenario, the user may wait on sending a command to one subordinate computer via one keyboard until having received and evaluated a response from another subordinate computer. The “SemWait” verb can emulate the decision making process of the user in sequencing the sending of commands through the two different keyboards. [0031]
  • “SemSignal” instructs the Script Processing function to provide a named signal so that one or more other subordinate conversations can proceed. Typically these other subordinate conversations are suspended waiting for this named signal pursuant to the foregoing “SemWait” verb. The provision of the “SemSignal” might enable these other subordinate conversations to proceed. The name of the signal to provide is given by a parameter to SemSignal. Typically, a script author will use SemSignal to let one or more subordinate conversations proceed after an appropriate response has been received from a certain subordinate. Each waiting subordinate conversation uses SemWait to listen for the named signal and proceed to the next line of its corresponding script segment only after it receives the signal. Step [0032] 601 of FIG. 6 illustrates the login of an emulated human operator named “bkw” and then the SemSignal verb. Step 602 of FIG. 6 illustrates the login of an emulated user “arthur” and then the corresponding SemWait verb. Thus, script segment 601 illustrates the use of SemSignal to provide signal “FRED” to script segment 602. Script segment 602 illustrates the use of SemWait to wait for subordinate SUB1 to provide signal “FRED”.
  • “MultiWait” instructs the Script Processing function to wait for all subordinate conversations sharing a given name prefix to provide a certain signal. The name prefix and the signal name are given by parameters to the MultiWait verb. The “MultiWait” verb is used to let one or more subordinate conversations wait for a whole class of subordinate conversations to reach a certain point, and only then do the waiting subordinate conversations continue processing. For example, in reference to FIG. 7, [0033] initialization step 701 defines five “STUDENT” subordinates, named STUDENT1, . . . , STUDENT5, all running script segment 702. Initialization step 701 also defines three “TEACHER” subordinates, named TEACHER1, . . . , TEACHER3, all running script segment 703. After emulation of login of user “bkw” with a password for all STUDENT and TEACHER subordinates, all STUDENT subordinates must finish “Is -al” before any TEACHER subordinate issues “uname -a”.
  • “MultiSignal” instructs the Script Processing function to provide the named signal, for capture by one or more other subordinate conversations' MultiWait verb. FIG. 7 also illustrates the use of MultiSignal, wherein each TEACHER subordinate is waiting for the “DONE” signal from each STUDENT subordinate before advancing. [0034]
  • Each “control directive” may also include one of the following control words or verbs which changes the Script Processing function's flow through the script segment, but is not directly related to advanceability of a subordinate conversation or the sending or receiving of data thereon: [0035]
  • “If” instructs the Script Processing function to branch within the script segment based on a condition specified as a parameter to the “If” directive. Processing either continues at the next line of the segment or branches to the corresponding “EndIf”, depending on the veracity of the specified condition. [0036]
  • “Do” instructs the Script Processing function to iterate over a portion of a script segment a certain number of times. The end of the sequence is marked by a corresponding “End” directive. The requisite number of iterations is given by a parameter to the “Do” verb. [0037]
  • “IfRun” instructs the Script Processing function to branch within the script segment based on whether the name of the subordinate conversation matches one of the subordinate name prefixes specified as a parameter to “IfRun”. If the subordinate name matches one of the prefixes, processing continues at the next line. If there is no match, control transfers to the corresponding “EndIfRun” directive. [0038]
  • Each “control directive” may also include one of the following control words or verbs which causes the Script Processing function to take specific immediate actions which do not bear on the interaction with the subordinate computers: [0039]
  • “Say” which instructs the Script Processing function to display specified text to a user of the master computer. [0040]
  • “Checkpoint” which instructs the Script Processing function to write to persistent storage (for example, a disk file) all of the subordinate responses it has received so far, so that in the event of a failure, some responses will have been saved. [0041]
  • As noted above, in [0042] step 104 the Script Processing function examines the “verb” in the script line. If the verb is “Send” (decision 106), then the Script Processing function sends the associated line of text (indicated by the parameter for the Send verb) to the subordinate (step 108). Then, the Script Processing function returns to step 102 to process the next line of this script segment. However, if the current line of the script segment does not contain a “Send” verb, then step 108 is bypassed, and the Script Processing function determines if the verb is “Wait” (decision 110). If so, the Script Processing function waits for some text to arrive from the subordinate associated with the script segment (step 112). To wait for some text, the Script Processing function uses the “wait for data” and “read data” functions provided by the data transport protocol being used. (In the Telnet example, the Script Processing function uses the TCP socket function “select( )” to wait for data to arrive from the subordinate, and it then uses the TCP socket function “read( )” to collect the arrived data. Those skilled in the art will recognize that other data transport means will have corresponding primitives which should be used in place of select( ) and read( ).) Whenever data arrives, the Script Processing function examines it to determine whether the desired text has arrived yet (step 114). When the desired text arrives, the Script Processing function loops back to step 102 to process more lines from the script segment.
  • If the line of the script segment does not contain any of the foregoing verbs, then the Script Processing function determines if the verb is “TimedWait” (decision [0043] 120). If so, the Script Processing function records the wakeup time for this subordinate conversation (step 122). The “wakeup” time for a “TimedWait” verb is based on a timer value specified as a parameter to the “TimedWait” verb. Next, the Script Processing function waits until the specified timer has expired (decision 124). At that time, the Script Processing function loops back to step 102 to process more lines from the script segment.
  • If the line of the script segment does not contain any of the foregoing verbs, the Script Processing function determines if the verb is “RandomWait” (decision [0044] 130). If so, the Script Processing function records the wakeup time for this subordinate conversation (step 132). The “wakeup” time for a “RandomWait” verb is based on a random time (within a specified range) generated by the Script Processing function. Next, the Script Processing function waits until the specified time has been reached (decision 134). At that time, the Script Processing function loops back to step 102 to process more lines from the script segment.
  • If the line of the script segment does not contain any of the foregoing verbs, the Script Processing function determines if the verb is “MultiWait” (decision [0045] 140). Such a script segment line will also specify the name prefix for the set of subordinates for which this conversation is waiting and the name of the signal all of these subordinates must provide before the script segment bearing the MultiWait can proceed. If the verb is a “MultiWait”, the Script Processing function checks whether all of the specified subordinates have already provided the named signal (step 142). If so, the Script Processing function loops back to step 102 to process the next line of the script segment. However, if at least one of the subordinates of the named set has not yet provided the named signal, the Script Processing function repeats step 142. When all subordinates of interest provide the named signal, the Script Processing function loops back to step 102 to process more lines from the script segment.
  • If the line of the script segment does not contain any of the foregoing verbs, the Script Processing function determines if the verb is “SemWait” (decision [0046] 150). Such a script segment line will also specify the name of the subordinate which will provide the signal and the name of the signal the subordinate will provide. If the verb is a “SemWait”, the Script Processing function checks whether the named subordinate has already provided the named signal (decision 152). If so, the Script Processing function loops back to step 102 to process the next line of the script segment. However, if the named subordinate has not yet provided the named signal, processing returns to decision 152. When the named subordinate provides the named signal, the Script Processing function loops back to step 102 to process more lines from the script segment.
  • If the line of the script segment does not contain any of the foregoing verbs, the Script Processing function determines if the verb is “SemSignal” (decision [0047] 160). If so, the Script Processing function records (step 162) that this subordinate conversation has provided the named signal. This will directly end the waiting of any subordinate conversation using SemWait (decision 152) to wait on this subordinate to emit this signal. The Script Processing function then loops back to step 102 to process more lines from the script segment.
  • If the line of the script segment does not contain any of the foregoing verbs, the Script Processing function determines if the verb is “MultiSignal” (decision [0048] 170). If so, the Script Processing function records (step 172) that this subordinate conversation has provided the named signal. Like SemSignal (step 162), this will contribute toward the advancement of one or more other subordinate conversations which were suspended at a MultiWait verb (decision 142). The Script Processing function then loops back to step 102 to process more lines from the script segment.
  • If the line of the script segment does not contain any of the foregoing verbs, then the Script Processing function determines if the verb is a conditional verb—“If”, “IfEnd”, “Do”, “End”, “IfRun” or “EndIfRun” (decision [0049] 180). If so, the Script Processing function evaluates the condition (step 182). In the case of an “If” verb, the script segment will also state the requisite condition. The Script Processing function will determine if the requisite condition has been satisfied and locate the appropriate next line of the script segment (step 184). The appropriate line is either the very next line of the script or the first line after the corresponding “EndIf”. In the case of a “Do” verb, the script segment will also state a number of iterations of a step or loop of steps to be performed, and the Script Processing function will iteratively execute them. The end of the block of script segment statements is marked by “End”. In the case of an “IfRun” verb, the script segment will also state the class of subordinates to which the steps apply. The Script Processing function will determine if the requisite condition has been satisfied and locate the appropriate next line of the script segment (step 184). The appropriate line is either the very next line of the script or the first line after the corresponding “EndIfRun”. For any of these conditionals, once it has located the appropriate next line, the Script Processing function returns to step 104 to evaluate the line.
  • If the line of the script segment does not contain any of the foregoing verbs, then the Script Processing function determines whether the verb is one of the minor verbs, such as “Say” or “Checkpoint” (decision [0050] 190). If so, the Script Processing function handles the verb accordingly (step 192) and then returns to step 102 to process more lines from the script segment.
  • If the line of the script segment does not contain any of the foregoing verbs, the Script Processing function displays an error message for the user of the master computer, halts its interactions with the subordinate computers, and terminates (step [0051] 200).
  • Based on the foregoing process, [0052] master computer 14 advances each subordinate conversation according to the instructions specified in its associated script segment. Subordinate conversations which have no requisite preconditions for completion or whose preconditions are satisfied from the outset may complete without ever waiting. Other subordinate conversations whose script segments include a “Wait” may be executed until reaching this verb, and then be suspended until receiving the requisite response from a subordinate computer. Other subordinate conversations whose script segments include a “TimedWait” or “RandomWait” verb may be executed until reaching these verbs, and then be suspended the requisite time before proceeding. Other subordinate conversations whose script segments include a “MultiWait” or “SemWait” verb may be executed until reaching this verb, and then be suspended until receiving a notification from one or more other subordinate conversations to proceed. Thus, the script and Script Processing function let a script author determine the timing and sequence in which commands will be sent to a plurality of subordinate computers.
  • Referring again to FIG. 1, during script processing, the Script Processing function notifies a [0053] Logging function 180 of the responses from the subordinates. The Logging function duly records them. After the Script Processing function completes each subordinate conversation, the Script Processing function notifies an End Connection function 42(b) to end the Telnet connection with the respective subordinate computer.
  • FIG. 3 illustrates a sample script that includes Wait, MultiWait, and MultiSignal verbs. The script begins with [0054] initialization step 300 which defines four subordinates followed by their respective IP addresses. Three of the subordinates are in class S and are named S1, S2, and S3. The other subordinate is named T. The script segment designated “S” is for each of the subordinates S1, S2 and S3. The script segment designated “T” is for subordinate T. Script segment S begins at step 302 a, while script segment T begins at item 304 a. All four script segments, i.e. three instances of script segment S and one instance of script segment T, execute concurrently. To process this script, the master computer runs its Parsing function 40 (from FIG. 1) so as to determine the identities of the subordinates and the script segments they are to run. The master computer next runs its Establish Connection function 42 (also from FIG. 1) so as to establish appropriate connections to the four subordinates. Next, the master computer begins its Script Processing function 44, conversing with the four subordinates concurrently. The Script Processing function advances each of the four subordinate conversations at its own pace, according to network speed, the speeds of the respective subordinate computers, and any wait conditions. With respect to each subordinate conversation S, the Script Processing function performs one or more steps 302 b, whose contents are not relevant to this example, and then performs step 302 c, wherein it waits for the subordinate to respond with text containing a dollar sign “$”. (Unix practitioners will recognize the “$” as the prompt character, indicating the computer is ready to process another command.) After the “$” is received, the Script Processing function moves to step 302 d, at which it records that the respective subordinate has provided the signal “DONE”. With respect to its conversation with subordinate T, the Script Processing function in like manner has worked through steps 304 a and 304 b, and arrived at 304 c. The Script Processing function cannot complete step 304 c on its conversation with subordinate T until it has completed step 302 d for each of its S1, S2, and S3 conversations, that is, until each of the S subordinates has emitted the “DONE” signal. Thus the master computer cannot advance its subordinate conversation T to step 304 d until its conversations with S1, S2, and S3 have all completed step 302 d. This achieves the synchronization of the operation of each of the four subordinate computers.
  • FIG. 4 illustrates one possible sequence of events that would satisfy the script of FIG. 3. The scenario begins at time t[0055] 0 with the master establishing its connections to the four subordinates S1, S2, S3, and T. At times t1 through t4, the master accomplishes intermediate steps 302 b and 304 b with the four subordinates, the relative ordering and function actually performed by these steps not being relevant to the present example. At time t5 the master receives “$” from subordinate S3, thus satisfying the Wait at 302 c, and so at time t6 accomplishes 302 d for subordinate S3, recording provision of signal “DONE”. At time t7 the master begins step 304 c for subordinate T, but finding the MultiWait condition unsatisfied, can advance its conversation with T no further. At times t8 through t11, the master detects receipt of “$” from subordinates S1 and S2 (step 302 c) and records their provisions of signal “DONE” (step 302 d). At this moment the conversation with subordinate T becomes advanceable, because all of the S subordinates have emitted “DONE”. However, at time t12 the Script Processing function continues with subordinate S1, accomplishing 302 e, whose actual function is not relevant to the present example. At t13 the master computer detects that S1, S2, and S3 have all emitted the signal “DONE”, and so the Script Processing function completes step 304 c with T. At time t14 the master computer completes step 304 d with T. Beyond time t14 the master continues with subordinates S1, S2, S3, and T through the rest of their script segments, description thereof not being relevant in this example.
  • Based on the foregoing, a computer system and method embodying the present invention have been disclosed. However, numerous modifications and substitutions may be made without deviating from the present invention. For example, minor verbs other than “Say” and “Checkpoint” could be added, or the “Wait” verb could be enhanced to detect that a subordinate has not emitted the desired response within a specified period of time, or iteration and flow control verbs sensitive to subordinate response texts could be added. Therefore, the present invention has been disclosed by way of illustration and not limitation and reference should be made to the following claims to determine the scope of the present invention. [0056]

Claims (6)

1. A computer program product for execution at a first computer to emulate manual user input at said first computer to operate second and third computers, said program product comprising:
a computer readable medium;
a first program segment to request initialization of communication between said first computer and said second and third computers;
a second program segment for interacting with said second computer; and
a third program segment for interacting with said third computer; and wherein
said second program segment and said third program segment are executed effectively concurrently;
according to said second program segment, execution of said second program segment is suspended pending said third computer reaching a certain state and said state being communicated to said second program segment, said suspension emulating waiting by said user at said first computer for said third computer to reach said certain state; and
after said certain state being communicated to said second program segment, resuming execution of said second program segment, said resumption emulating a decision by said user to resume execution of said second program segment based on said third computer reaching said certain state; and wherein
said first, second and third program segments are recorded on said medium.
2. A computer program product as set forth in claim 1 wherein said second program segment is a script segment and said third program segment is a script segment.
3. A computer program product as set forth in claim 1 wherein said third program segment makes said communication to said second program segment.
4. A first computer to emulate manual user input at said first computer to operate second and third computers, said first computer comprising:
means for executing a first program segment to request initialization of communication between said first computer and said second and third computers;
means for executing a second program segment to interact with said second computer; and
means for executing a third program segment to interact with said third computer; and wherein
said second program segment and said third program segment are executed effectively concurrently;
according to said second program segment, execution of said second program segment is suspended pending said third computer reaching a certain state and said state being communicated to said second program segment, said suspension emulating waiting by said user at said first computer for said third computer to reach said certain state; and
after said certain state being communicated to said second program segment, resuming execution of said second program segment, said resumption emulating a decision by said user to resume execution of said second program segment based on said third computer reaching said certain state.
5. A computer program product for execution at a first computer to emulate user input at said first computer to operate a second computer, said computer program product comprising:
a computer readable medium;
a first program segment comprising:
a first command to send a first request to said second computer;
a second command subsequent to said first command to send a second request to said second computer;
a third command, between said first and second commands, to wait until receiving a first signal before executing said second command; and
a second program segment comprising:
a fourth command emulating a decision by said user to execute said second command, said fourth command emitting said first signal when said user would decide to execute said second command; and wherein
said first and second program segments are executed concurrently at said first computer; and
said first and second program segments are recorded on said medium.
6. A computer program product for execution at a first computer to emulate user input at said first computer to operate a second computer, said computer program product comprising:
a computer readable medium;
a first program segment comprising a first command to send a first request to said second computer, said first program waiting for a first signal before executing said first command;
a second program segment comprising:
a second command emulating a decision by said user to execute said first command, said second command emitting said first signal when said user would decide to execute said first command, said first signal being accessible or received by said first program segment; and wherein
said first and second program segments are executed concurrently at said first computer; and
said first and second program segments are recorded on said medium.
US10/280,977 2002-10-24 2002-10-24 System and method for coordinated operation or a plurality of computers Abandoned US20040083089A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US10/280,977 US20040083089A1 (en) 2002-10-24 2002-10-24 System and method for coordinated operation or a plurality of computers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US10/280,977 US20040083089A1 (en) 2002-10-24 2002-10-24 System and method for coordinated operation or a plurality of computers

Publications (1)

Publication Number Publication Date
US20040083089A1 true US20040083089A1 (en) 2004-04-29

Family

ID=32107074

Family Applications (1)

Application Number Title Priority Date Filing Date
US10/280,977 Abandoned US20040083089A1 (en) 2002-10-24 2002-10-24 System and method for coordinated operation or a plurality of computers

Country Status (1)

Country Link
US (1) US20040083089A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090006985A1 (en) * 2007-06-29 2009-01-01 Fong Spencer W Using interactive scripts to facilitate web-based aggregation
JP2018060568A (en) * 2007-08-16 2018-04-12 クリムソン コーポレイション Voice enabled telnet interface
US10873621B1 (en) 2014-08-20 2020-12-22 Ivanti, Inc. Terminal emulation over html
US11100278B2 (en) 2016-07-28 2021-08-24 Ivanti, Inc. Systems and methods for presentation of a terminal application screen

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5410681A (en) * 1991-11-20 1995-04-25 Apple Computer, Inc. Interpreter for performing remote testing of computer systems
US6263302B1 (en) * 1999-10-29 2001-07-17 Vast Systems Technology Corporation Hardware and software co-simulation including simulating the cache of a target processor
US20010056341A1 (en) * 2000-03-15 2001-12-27 Pennello Thomas J. Method and apparatus for debugging programs in a distributed environment
US20030208748A1 (en) * 2002-05-06 2003-11-06 Ariel Levin Blocking access to selected APIs
US20030237076A1 (en) * 2002-06-25 2003-12-25 Daniel Tormey System and method for increasing performance in multi-CPU simulation
US6882968B1 (en) * 1999-10-25 2005-04-19 Sony Computer Entertainment Inc. Method of measuring performance of an emulator and for adjusting emulator operation in response thereto

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5410681A (en) * 1991-11-20 1995-04-25 Apple Computer, Inc. Interpreter for performing remote testing of computer systems
US6882968B1 (en) * 1999-10-25 2005-04-19 Sony Computer Entertainment Inc. Method of measuring performance of an emulator and for adjusting emulator operation in response thereto
US6263302B1 (en) * 1999-10-29 2001-07-17 Vast Systems Technology Corporation Hardware and software co-simulation including simulating the cache of a target processor
US20010056341A1 (en) * 2000-03-15 2001-12-27 Pennello Thomas J. Method and apparatus for debugging programs in a distributed environment
US20030208748A1 (en) * 2002-05-06 2003-11-06 Ariel Levin Blocking access to selected APIs
US20030237076A1 (en) * 2002-06-25 2003-12-25 Daniel Tormey System and method for increasing performance in multi-CPU simulation

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090006985A1 (en) * 2007-06-29 2009-01-01 Fong Spencer W Using interactive scripts to facilitate web-based aggregation
US9563718B2 (en) * 2007-06-29 2017-02-07 Intuit Inc. Using interactive scripts to facilitate web-based aggregation
JP2018060568A (en) * 2007-08-16 2018-04-12 クリムソン コーポレイション Voice enabled telnet interface
US10938886B2 (en) 2007-08-16 2021-03-02 Ivanti, Inc. Scripting support for data identifiers, voice recognition and speech in a telnet session
US10873621B1 (en) 2014-08-20 2020-12-22 Ivanti, Inc. Terminal emulation over html
US11100278B2 (en) 2016-07-28 2021-08-24 Ivanti, Inc. Systems and methods for presentation of a terminal application screen

Similar Documents

Publication Publication Date Title
EP3992800B1 (en) Program test method and apparatus, computer device, and storage medium
Rangnau et al. Continuous security testing: A case study on integrating dynamic security testing tools in ci/cd pipelines
US11921497B2 (en) Zero footprint robotic process automation system
US7047446B1 (en) Load test system and method
EP0756726B1 (en) Trainable user interface translator
US20030182408A1 (en) Load test system for a server and method of use
US9177285B2 (en) Method and system for controlling a space based on media content
US20090037775A1 (en) Messaging system based group joint debugging system and method
US20050022159A1 (en) System and method for creating a performance tool and a performance tool yield
US7596756B2 (en) Browser session control system and method
US20020087966A1 (en) Methods and apparatuses for building installation software
CN108170494A (en) A kind of application program launching method and activation system for intelligent terminal
CN107025123A (en) The method for managing system and device of desktop virtualization
US10430232B2 (en) Controllable workflow in software configuration automation
US20040083089A1 (en) System and method for coordinated operation or a plurality of computers
CN107590062B (en) Multi-client interaction testing method and device
CN117196546A (en) RPA flow executing system and method based on page state understanding and large model driving
US7243137B2 (en) Remote system controller and data center and methods for implementing the same
CN111177632A (en) Data acquisition method and related equipment, system and storage device thereof
CN116107869A (en) Arrangement test method and device, electronic equipment and readable storage medium
CN111708568B (en) Modularized development decoupling method and terminal
US7421662B1 (en) Automating interaction with a host computing device
US20230244518A1 (en) Isolated arena environment instantiation for asynchronous content delivery
Kuroiwa et al. Automatic testing environment for virtual network embedded systems
CN117608729A (en) Remote control method and system and storage medium

Legal Events

Date Code Title Description
AS Assignment

Owner name: INTERNATIONAL BUSINESS MACHINES CORPORATION, NEW Y

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:WADE, BRIAN K.;REEL/FRAME:013430/0984

Effective date: 20021023

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO PAY ISSUE FEE