TW462162B - Method for automatically testing modem - Google Patents

Method for automatically testing modem Download PDF

Info

Publication number
TW462162B
TW462162B TW88120671A TW88120671A TW462162B TW 462162 B TW462162 B TW 462162B TW 88120671 A TW88120671 A TW 88120671A TW 88120671 A TW88120671 A TW 88120671A TW 462162 B TW462162 B TW 462162B
Authority
TW
Taiwan
Prior art keywords
modem
client
server
scope
patent application
Prior art date
Application number
TW88120671A
Other languages
Chinese (zh)
Inventor
Tong S Chen
Kuang-Shin Lin
Gang Fan
Original Assignee
Inventec 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 Inventec Corp filed Critical Inventec Corp
Priority to TW88120671A priority Critical patent/TW462162B/en
Application granted granted Critical
Publication of TW462162B publication Critical patent/TW462162B/en

Links

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention relates to a method for automatically testing modem, which provides a method to finish modem testing with unattended operation. By means of installing modems at server end and client end, the invention performs the steps of keeping the modem over server end as on-line state, issuing command and sending/receiving data by keyboard emulation from client end and standing by and automatically determining the reply status of the server end (including test result and error pattern). Therefore, the test can be automatically done, and the testing efficiency is higher and the error rate resulting from manual testing can be lowered.

Description

五'發明說明(1) 【發明的應用範圍】 本發明係有關一種自動測試數據機之方法,應用於生 產線上抽樣提取一批數據機進行測試,以判斷所出廠之數 據機是否可正常運作。 【發明背景】 傳統對數據機進行測試的方法,基本上是採用向一輸 出槔(〇 u t p u t ρ 〇 r t )發送資料並測試其返回之訊息,通 常稱其為内部測試。但對於用戶來講,最直觀、且最具有 說服力的方法就是通過兩台機器連結交換機後實際發送及 接收資料來測試數據機的使用狀況。而在某些筆記型電腦 (N 〇 t e b ο 〇 k )的生產廠家,在採用内部測試方法對機器的數 據機進行測試後,往往還需要抽樣提取一批機器進行直接 發送/接收之測試° 從操作的流程上可以看出利用這種測試方法來進行測 試,其效率較低,原因是必領同睥操器(客戶端 與伺服端)以用於發送/接收資料,當通過模擬程控換 機連結兩台機器後,用鍵盤輸入賀式指令(Hay e s ),並 根據所返回的結果進行相應操作或記錄錯誤類_型,由此可 見其操作相當繁瑣。 參考「第3 、4圖」,係為傳統測試數據機之方法 時,客戶端(Client)與伺服端(Server)之工作流程 圖,其工作流程如下所述: 首先,由客戶端鍵盤輸入賀式指令1' AT ί 3 "(步驟 3 0 0〜3 0 1 ),由客戶端判別客戶端數據機之配置是否正確Five 'invention description (1) [Scope of application of the invention] The present invention relates to a method for automatically testing a data machine, which is applied to sampling a batch of data machines for testing on a production line to determine whether the factory-made data machines can operate normally. [Background of the Invention] The traditional method for testing modems is basically to send data to an output unit (〇 u t p u t ρ 〇 r t) and test the information returned by it, which is usually called internal testing. But for the user, the most intuitive and persuasive method is to test the usage of the modem by actually sending and receiving data after the two machines are connected to the switch. However, in some notebook computer manufacturers (N oteb ο 〇k), after using the internal test method to test the machine's data machine, it is often necessary to sample a batch of machines for direct send / receive testing. It can be seen in the operation process that using this test method for testing is less efficient because the peer operator (client and server) must be used to send / receive data. When the program is changed by simulation After connecting the two machines, use the keyboard to enter the Hayes command, and perform the corresponding operation or record the error type according to the returned results, which shows that the operation is quite tedious. Refer to “Figures 3 and 4”, which are the flow charts of the client and server when using the traditional test modem method. The workflow is as follows: First, enter the message from the client keyboard. 1 'AT ί 3 " (step 3 0 0 ~ 3 0 1), the client judges whether the configuration of the client modem is correct

五、發明說明¢2) (步驟3 0 2 ),同時,亦由伺服端鍵盤輸入賀式指令 n A T I 3 "(步驟4 Ο 0〜4 ◦ 1 ),由伺服端判別伺服端數據機之 配置是否正確(步驟4 0 2 ),若不正確,則寫錯誤紀錄 (步驟309、410),若正確,則由客戶端鍵盤輸入指令 ” ATD+電話號碼”,如n ADO Γ之鍵盤撥號(步驟3 0 3 ),伺 服端等待n RI N G Ί是否顯示(步驟4 0 3〜4 0 4 ),若否,則反 覆等待,直到顯示” RI N G"時,由伺服端鍵盤輸入指令 "A T A ” ,表示等待連接成功(步驟4 0 5 ),此時,客戶端判 別是否連接成功(步驟3 0 4 ),若否,則寫錯誤紀錄(步 驟3 0 9 ),若連接成功,則由客戶端鍵盤輸入一測試資料 並發送〔步驟3 0 5 ),由伺服端接收測試資料(步驟4 0 6 ),伺服端判別資料是否與客戶端之測試資料相同(步驟 4 0 7 ),若不相同,則寫錯誤紀錄(步驟4 1 0 ),若相同, 則由伺服端鍵盤輸入並發送資料(步驟4 0 8 ),由客戶端 接收測試資料(步驟3 0 6 ),再判別接收之資料與伺服端 所發送之資料是否相同(步驟3 0 7 ),若不相同,則寫錯 誤紀錄(步驟3 0 9 ),若相同,則退出測試、結束(步驟 3 0 8 ' 4 0 9 ),完成數據機之測試作業。 【發明之目的及概述】 本發明主要的目的即是要提供一種自動測試數據機之 方法,4常伺月良端_之I攄徵j息處___於連狀態,而僅需連接 客戶端之數據機,當兩台機器後,不需人工參與測 試,由客戶端模擬鍵盤發送命令及發送/接收資料, 動判別測尊結果,如此可提高測試之效率,及V. Description of the invention ¢ 2) (step 3 0 2), at the same time, the server-side keyboard also enters the congratulatory command n ATI 3 " (step 4 0 0 ~ 4 ◦ 1), and the server side judges the server-side modem. Whether the configuration is correct (step 402). If it is incorrect, write an error record (steps 309, 410). If it is correct, enter the command "ATD + phone number" from the client keyboard, such as n ADO Γ key dialing (step 3 0 3), the server waits for n RI NG Ί to be displayed (step 4 0 3 ~ 4 0 4), if not, it waits repeatedly until "RI N G" is displayed, enter the command from the server keyboard " ATA ”Means waiting for the connection to succeed (step 405). At this time, the client determines whether the connection is successful (step 304). If not, writes an error record (step 309). If the connection is successful, the client Enter a test data from the keyboard and send it [step 305], and the server receives the test data (step 406). The server judges whether the data is the same as the test data from the client (step 407), if not the same , Then write the error record (step 4 1 0), if the same, then from The server keyboard inputs and sends data (step 408), and the client receives the test data (step 306), and then determines whether the received data is the same as the data sent by the server (step 307). If they are the same, write an error record (step 309). If they are the same, exit the test and end (step 308'4 0 9) to complete the test operation of the modem. [Objective and Summary of the Invention] The main purpose of the present invention is to provide a method for automatically testing a data machine. It is often connected to the good end of the month, and it is connected to the state, and only needs to connect with the customer. The terminal data machine, after two machines, does not need to manually participate in the test, the client simulates the keyboard to send commands and send / receive data to dynamically determine the test result, which can improve the test efficiency, and

462162 五、發明說明(3) 降低因人工測試產生錯誤之機率。 根據本發系揭ί的i動測試數據機之方法,伺服端 之數據機一般是處於連線狀態,僅需替換客戶端之數/楗 機,即可重Ϊ進行數i機之測試,芙步驟_包括.: 建立連_線狀態,將複數台待測之客戶端數據機逹接當 —態彳立^於線上之伺服端數據機; 啟動程控動作使客戶端數據瘗向J服_端數據機連線, 若連接不成功則寫錯誤紀紙、it i ; 藉由客戶端數據機發送測試資料並等待回應;以及 判斷回"應資+料是否相符,若不相符則寫錯誤紀錄、結 束,若相符則測試成功、結束。 有關本發明之詳細内容及技術,茲就配合圖式說明如 下: 【圖式簡單說明】 第1圖,係為自動測試數據機之實施示意圖。 第2圖,係為客戶端連接多台數據機之實施示意圖。 第3圖,係為傳統客戶端工作流程圖。 第4圖,係為傳統伺服端工作流程圖。 第5圖,係為本發明客戶端工作流程圖。 第6圖,係為本發明伺服端工作流程圖。 第7圖,係為本發明客戶端詳細實施流程圖。 第8圖,係為本發明伺服端詳細實施流程圖。 【發明之詳細說明】 首先,請參閱「第1圖」,係為根據本發明所揭露的462162 V. Description of the invention (3) Reduce the chance of errors caused by manual testing. According to the method of testing the data machine disclosed in this issue, the data machine on the server side is generally in the connected state. You only need to replace the number of the client / machine to test the data machine. The steps include: Establishing a connection status, connecting a plurality of client modems to be tested—a stand-alone server modem on the line; starting a program-controlled action to cause the client data to be sent to the J server. Modem connection, if the connection is unsuccessful, write error papers, it i; send test data and wait for a response by the client modem; and determine whether the " should + data match, if not, write an error record , End, if they match, the test succeeds and ends. The detailed content and technology of the present invention are described below with reference to the drawings: [Simplified description of the drawings] Figure 1 is a schematic diagram of the implementation of an automatic test data machine. Figure 2 is a schematic diagram of the implementation of a client connecting multiple modems. Figure 3 is a flowchart of the traditional client work. Figure 4 is a flowchart of the traditional server operation. FIG. 5 is a flowchart of the client operation of the present invention. Fig. 6 is a flowchart of the work of the server of the present invention. FIG. 7 is a detailed implementation flowchart of a client of the present invention. FIG. 8 is a detailed implementation flowchart of the server end of the present invention. [Detailed description of the invention] First, please refer to "Figure 1", which is disclosed according to the present invention.

第6頁 修煩 正請 丰4 a η ·:?- 一 —r i' 動測試數據機方法之貧施制示意圖,一邊是測試接收端 10 ’該伺服(Server )端11气以固定方式連接,其數據機 一般是處於連線狀態,由模擬程控交換機2 2所指定,而另 一邊則是測試發送端2 0 ’即需要測試數據機之客戶 (Client)端23 ’採用傳輸線21,如pipeHne或利用電話 線與模擬程控交換機2 2連線’此時,客戶端2 3和伺服踹1 1同時工你,並通過模擬程控交換機2 2交換訊息。如此之 測試配置’僅需替換客戶端2 3之數據機即可進行下一數據 機之測試。 ί'} 容 否 准 而「第2圖」係為測試發送端2 0 a連接多台客戶端 。23a、23b、23c數據機的實施示意圖’工作原理亦相同於 ^ 「第1圖」之貫施方式,唯不同者為可多台數據機同時藉 ]由模擬程控交換機22與測試接收端1 〇之伺服端丨丨數據機連 f線,如此,只要任一客戶端2 3連線上伺服端丨丨即可進行客 |1|戶端23數據機之測試,可以達到同時測試多台數據機之目 ^的,且相當節省效率。 根據本發明所揭露的自動測試數據機之方法,其主要 包括有以下兩部份之技術特點: 一、模擬Windows鍵盤輸入: 驅動客戶/伺服端自動運行需要從鍵盤上輸入之賀式 指令’例如測試數據機類型指令AT丨3,由於必須自動運行 需要程序以模擬Windows的鍵盤訊息’因此,利用wind〇Ws 應用程式介面(API ’如keydb_event)以發送鍵盤 ASCII / SCAN碼,如此之方法使得控制簡單靈活,代碼量Page 6 Repair troubles please ask 4 a η ·:?-A—ri 'diagram of the method of dynamic test data machine method, one side is the test receiver 10' the server (Server) terminal 11 is connected in a fixed way, The modem is generally in the connected state, which is designated by the analog program-controlled switch 22, and the other side is the test sender 2 0 ', that is, the client end 23' that needs to test the modem. The transmission line 21 is used, such as pipeHne or Use a telephone line to connect to the analog program-controlled switch 2 2 'At this time, the client 2 3 and the servo 踹 1 1 work at the same time and exchange messages through the analog program-controlled switch 2 2. Such a test configuration 'only needs to replace the modem of the client 2 3 to perform the test of the next modem. ί '} The content is acceptable. The "Figure 2" is for testing the sending end 20a to connect multiple clients. 23a, 23b, 23c modem implementation diagram 'The working principle is the same as the implementation method of "Figure 1", except that multiple modems can be borrowed at the same time] The analog program-controlled switch 22 and the test receiver 1 The server 丨 丨 modem is connected to the f line. So, as long as any client 2 3 is connected to the server 丨 丨, the test of the client | 1 | client 23 modem can be performed, and multiple modems can be tested at the same time. The purpose of ^, and quite efficient. The method for automatically testing a data machine according to the present invention mainly includes the following two technical features: 1. Simulate Windows keyboard input: To drive the client / server to run automatically, a congratulatory command input from the keyboard is required. The test modem type command AT 丨 3, because it must run automatically, it needs a program to simulate the keyboard message of Windows. Therefore, use the wind 〇Ws application program interface (API 'such as keydb_event) to send the keyboard ASCII / SCAN code. Simple and flexible, code amount

第7頁 4621^2 五、發明說明(5) W?。 利用H y p e r T 而HyperTrm 為Mi 當方便,用戶使 1. 鍵盤輸入 等;以及 2. 從HyperT 單中選取ALT + T, 二、監控HyperT 對於測試之 須根據H y p e r T r m 或者是記錄下不 貫現此測試方法 —般HyperT 窗顯示_,例 HyperTrm在顯示 )以顯示訊息」 話框等待檔案名 方式,將監控技 1 ·對 H y p e r T 來和其他程武溝 HyperTrm之輸出 2 .監控流程 參考「第5 的顯示訊 情況,各種 返回的結果 同的錯誤類 之關鍵。 rm的輪出結 如當用戶從 窗顯示N ^ μ 當用戶選擇 稱輪入。因 rjn加輿鉤锋 通的副裎式 重新定向以 中是杳^有相 、7 圖.. 息以判別 情形均有 以自動運 型,故監 果有以下 鍵盤輸入 傳輸擋案 此,根據 兩類: _( HOOK ) ’可交換 判別輸出 應^的貴話 係為客戶 r m來作為操作數據機連線時之界面程式, croSoft所提供的連線使用工具,因此相 用時一般採用以下幾種方式: 數據機指令,例*ΑΤΧ3、ΑΤΙ3及ATDT109 rm之選單中輸入命令,如傳輸檔案(在選 測試流程: 可能發生,因此,必 作不同的測試流程, 控HyperTrm的輸出是 指令ATX3後, ^(Dialog Box 後’HyperTrm彈出對 以上HyperTrm的輸出 函數.,鉤接函數係用 訊息及資料,將 結果;以及 框彈出或,消.表。 端工作流程圖及詳細Page 7 4621 ^ 2 V. Description of the invention (5) W ?. Use Hyper T and HyperTrm as Mi. It is convenient for users to use 1. keyboard input, etc .; and 2. select ALT + T from the HyperT list, and 2. monitor HyperT according to Hyper T rm or record inconsistencies for the test Now this test method—General HyperT window display_, for example, HyperTrm is displayed) to display the message ”dialog box and wait for the file name method to monitor the technology 1 · Output to Hyper T and other Chengwugou HyperTrm 2. Monitoring process reference "The 5th display message is the key to the same type of error. The result of rm's rotation is the same as when the user displays N ^ μ from the window. When the user chooses to weigh in. Because of rjn and the vice-president of Yugou Tongtong The type redirection is based on 杳 ^ 有 相, 7 Figure. The information is used to determine the situation. The automatic mode is used to monitor the situation. Therefore, the supervisor has the following keyboard to input the transmission file. According to two types: _ (HOOK) 'Interchangeable discrimination The output of your call is for the client rm to be used as the interface program when operating the modem connection. The croSoft provides the connection use tool, so the following methods are generally used when using it: modem instruction, example * Enter commands in the ΑΤχ3, ΑΙΙ3, and ATDT109 rm menus, such as transferring files (the selection test process: may occur, so a different test process must be performed. After controlling the output of HyperTrm to instruct ATX3, ^ (after Dialog Box 'HyperTrm pops up For the above HyperTrm output functions, the hook function is to use messages and data to display the results; and the box pops up or cancels the table.

五、發明說明(6〕 實施流程圖,其工作流程為: 建立連線狀態,將複數台待測之客戶(C 1 i e n t )端數 據機連接一常態位於線上(on line)之伺服(Server) 端數據機(步驟5 0 0〜5 1 Q ); 啟動程控動作使客戶端數據機向伺服端數據機連線, 若連接不成功,則寫錯誤紀錄、結束(步驟5 2 0 ); 藉由客戶端數據機發送測試資料並等待回應(步驟 530 );以及 判斷回應資料是否相符,若不相符,則寫錯誤紀錄、 結束(步驟5 4 0 ),若相符,則測試成功、結束(步驟5 5 0 )° 而客戶端之詳為: (1 ) t客戶端模擬龙,輸入指令,以判別客戶端數據 機之配置是否正確(步驟700〜701),可包含數據機是否 正常及數據機之機型判別等,若不正確,則寫錯誤紀錄、 結束(步驟7 1 3 ); (2 )使客戶端模擬鍵盤撥號(步驟7 0 2 ),以判斷是否 與伺服端連接成功(步驟7 0 3 ),若連接不成功,則寫錯 誤紀錄、結束(步驟7 1 3 ); (3 )使客戶端模擬鍵盤輸入指令,以收/發一測試資料 (步驟7 0 4 ),並等待接敗伺〜m端返回之測試資料(步驟 7 0 5〜7 0 6 ),若尚未接收完成則反覆等待接收,若接收完 成,則判別所發送與接收之資料是否相符(步驟7 0 7 ), 若不相符,則寫錯誤紀錄、結束(步驟7 1 3 );V. Description of the invention (6) The implementation flow chart, the work flow of which is as follows: Establish a connection state, connect a plurality of client (C 1 ient) modems to be tested to a server that is normally on the line (Server) End data machine (step 5 0 ~ 5 1 Q); start the program control action to make the client data machine connect to the server data machine, if the connection is not successful, write the error record and end (step 5 2 0); by The client modem sends test data and waits for a response (step 530); and determines whether the response data matches, if not, writes an error log and ends (step 5 4 0); if they match, the test succeeds and ends (step 5) 5 0) ° The details of the client are as follows: (1) The client simulates a dragon and enters instructions to determine whether the configuration of the client modem is correct (steps 700 to 701), which can include whether the modem is normal and the modem is Model identification, etc. If it is not correct, write the error log and end (step 7 1 3); (2) make the client simulate the keyboard dialing (step 7 0 2) to determine whether the connection with the server is successful (step 7 0 3) If the connection is unsuccessful , Then write the error log and end (step 7 1 3); (3) make the client simulate the keyboard to input instructions to send / receive a test data (step 7 0 4), and wait for the test returned by the ~ m terminal Data (step 7 05 ~ 7 0 6), if it has not been received, it waits for receiving repeatedly; if the reception is completed, it determines whether the data sent and received are consistent (step 7 0 7), if not, write an error record And end (step 7 1 3);

4 6 2 16 2 五、發明說明(7) (4 )選擇客戶端之選單,以收/發一測試檔案(步驟 7 0 8 ),並等待飼' 版端返回之測試檔案(步驟7 0 9〜7 1 0 ), 若尚未接收完成則反覆等待接收,若接收完成,則判別所 發送與接收之檔案是否相符(步驟7 1 1 ),若不相符,則 寫錯誤紀錄、結束〔步驟7 1 3 ),若相符,則測試成功、 結束(步驟7 1 2 )。 參考「第6 、8圖」,係為伺服端工作流程圖及詳-細 實施流程J,其工作流程為: 等>並可互相連線(步驟 6 0 0 - 6 1 0 ); 伺服端接收客戶端數據機發出之測試資料,並且伺服 端發送該已接收的資料返回客戶端(步驟6 2 0 );以及 伺服端接收客戶端數據機發出之測試檔案,並且伺服端更 名該檔案且發送該已接收的檔案返回客戶端(步驟6 3 0 ),測試結束(步驟6 4 0 )。 而伺服端之詳細實施流程為: (1 )伺服端起始已處於連線狀態,僅需等待客戶端撥 號連線(步驟8 0 0〜8 0 1 ); (2 )當客戶端撥號並連接完成後,伺服端等待接收測 試資料(步驟8 0 2 ),並判斷是否接收完成(步驟8 0 3 ), 若尚未接收完成則反覆等待接收,若接收完成,則使伺服 端模擬鍵盤發送已接收之資料返回客戶端(步驟8 0 4 ); 以及 (3 )伺服端等待接收測試檔案(步驟8 0 5 ),並判斷是4 6 2 16 2 V. Description of the invention (7) (4) Select the client's menu to receive / send a test file (step 7 0 8), and wait for the test file returned by the version terminal (step 7 0 9 ~ 7 1 0), if the reception is not completed, it waits for reception repeatedly; if the reception is completed, it is judged whether the sent and received files are consistent (step 7 1 1); if they do not match, write the error record and end [step 7 1 3) If they match, the test is successful and ends (step 7 1 2). Refer to "Figures 6 and 8" for the server-side work flow chart and detailed implementation process J. The work flow is: etc. and can be connected to each other (step 6 0-6 1 0); Receive the test data from the client modem, and the server sends the received data back to the client (step 6 2 0); and the server receives the test file from the client modem, and the server renames the file and sends it The received file is returned to the client (step 630), and the test ends (step 640). The detailed implementation process of the server is: (1) The server is already connected at the beginning, and only needs to wait for the client to dial up (steps 80 0 ~ 80 0 1); (2) When the client dials and connects After completion, the server waits to receive the test data (step 802), and determines whether the reception is complete (step 803). If the reception is not completed, it waits repeatedly for reception, and if the reception is completed, it makes the server end simulate the keyboard to send the received data. The data is returned to the client (step 804); and (3) the server waits to receive the test file (step 805), and determines whether it is

第10頁 五、發明說明(8) 否接收完成(步驟8 0 6 ),若尚未接收完成則反覆等待接 收,若接收完成,則使伺服端模擬鍵盤更名該測試檔案 後,發送已更名之檔案返回客戶端(步驟8 0 7 ),測試結 束(步驟808)。 【實施例】 以測試A廠家所生產X X X系列5 6 K b p s之數據機類型為 例,將其連結為客戶端,而伺服端之數據機已於測試前常 態連接於模擬程控交換機,且處於連線狀態,待客戶端數 據機連結完成後,開始測試流程: (1 )使客戶端模擬鍵盤輸入指令"ATX3 π ,以判斷客戶 端數據機是否正常,若正常,則顯示” Ο Κ ” ,跳至下一步 驟,若不正常,則寫錯誤紀錄、結束; (2 )使客戶端模擬鍵盤輸入指令〃 AT I 3 ” ,以判斷客戶 端數據機之機型,若顯示為1' A薇家5 6 K b p s X X X係列 MODEM",則表示為預定機型,跳至下一步驟,若不正確, 則寫錯誤紀錄、結束; 步驟(1 )與(2 )係用以檢驗客戶端數據機之配置狀態; (3 )使客戶端模擬鍵盤輸入撥號指令” A T D +電話號碼 ”,如n A D 0 1u ,以判斷客戶端數據機與伺服端數據機之連 線狀態,若結果為"N0 CARR I ER",則寫錯誤紀錄、結束, 若不是"NO CARRIER1',表示連接成功,跳至下一步驟; (4)使客戶端模擬鍵盤輸入並發送"This is a sample of MODEM automatically diagnostic·1'之測試資料,以 判斷收/發測試資料是否可相符,等待伺服端接收後並發5. Explanation of the invention on page 10 (8) No reception is completed (step 8 0). If the reception is not completed, it waits for reception repeatedly. If the reception is completed, the server-side analog keyboard is renamed to the test file, and the renamed file is sent. Return to the client (step 807), and the test ends (step 808). [Example] Take the type of modem of XXX series 5 6 K bps produced by manufacturer A as an example, connect it as a client, and the modem of the server has been normally connected to the analog program-controlled switch before the test, and On-line status, after the client modem connection is completed, start the test process: (1) Make the client simulate the keyboard to enter the command "ATX3 π" to determine whether the client modem is normal. If it is normal, it will display "Ο Κ", Skip to the next step, if it is abnormal, write the error record and end; (2) Make the client simulate the keyboard to input the command 〃 AT I 3 "to determine the model of the client modem, if it is displayed as 1 'A Wei Home 5 6 K bps XXX series MODEM ", it means it is a predetermined model, skip to the next step, if it is not correct, write the error record and end; Steps (1) and (2) are used to check the client modem (3) The client simulates the keyboard to enter the dialing command "ATD + phone number", such as n AD 0 1u, to determine the connection status between the client modem and the server modem. If the result is " N0 CARR I ER ", write error log, end, if not " NO CARRIER1 ', it means the connection is successful, skip to the next step; (4) make the client simulate keyboard input and send " This is a sample of MODEM automatically diagnostic · 1 'test data to determine whether the test data sent / received can be matched, wait for the server to receive the data

4 6 2 16 2 五、發明說明¢9) 回,若所發回的字串與發送的字串相符,則跳至下一步 驟,若不相符,則寫錯誤紀錄、結束;以及 (5)選擇選單輸入傳送一測試檔案"TEST. ΕΧΕ” ,以收/ 發檔案進行測試,伺服端接收後,將檔案更名(Rename ) 為"TEST. ΒΑΓ’ ,並將更名後之檔案回傳客戶端,若所發回 的檔案内容輿測 <稽.案之内容相符,則測試成功、I束、 退出此項測試,若不相符,則寫錯誤紀錄、結束^ 【發明之效果】 根據本發明所揭露自動測試數據機之方法,其效果 為: 1 ·無須人工參與數據機之測試流程,其測試程序為自動 測試,可節省資源,並且提高了效率。 2 ·藉由自動測試之方法,可以降低經由人工測試所造成 之出錯率。 雖然本發明已以一較佳實施例揭露如上,然其並非用 以限定本發明,任何熟習此技藝者,在不脫離本發明之精 神和範圍内,當可作些許之更動與潤飾,因此本發明之保 護範圍當視後附之申請專利範圍所界定者為準。 【圖示符號說明】 10 測試接收端 11 {司月艮端(Server) 20 ' 20a 測試發送端 2 1 傳輸線 22 模擬程控交換機4 6 2 16 2 V. Description of the invention ¢ 9) Back, if the returned string matches the sent string, skip to the next step, if it does not match, write the error record and end; and (5) Select the menu to enter and send a test file " TEST. ΕΕΕ "to test the receiving / sending file. After receiving by the server, rename the file (Rename) to " TEST. ΒΑΓ 'and return the renamed file to the client At the end, if the content of the file sent back from the survey " the case matches, the test is successful, I beam, exit this test, if not, write an error log, and end ^ [Effect of the invention] According to this The method disclosed by the invention for automatic testing of the data machine has the following effects: 1) No manual participation in the testing process of the data machine is required, and the test procedure is automatic testing, which can save resources and improve efficiency. 2 · By the method of automatic testing, It can reduce the error rate caused by manual testing. Although the present invention has been disclosed as above with a preferred embodiment, it is not intended to limit the present invention. Any person skilled in this art will not depart from the spirit of the present invention. Within the scope, some modifications and retouching can be made, so the protection scope of the present invention shall be determined by the scope of the attached patent application. [Illustration of Symbols] 10 Test Receiver 11 {司 月 根 端 (Server ) 20 '20a test sender 2 1 transmission line 22 analog program controlled switch

第12頁 462162Page 12 462162

第13頁Page 13

Claims (1)

462162 六、申請專利範圍 1 _ 一種自動測試1攄„機之友今,其步驟包括: 建立一連線狀態,-複數台待刿之裏/ ( C 1 i e n t )端 數據機連接一常態伞於線上(ο η 1 i n e )之伺服 (Server)端數據機; 啟動一程控羞ί乍使謹_笔戶端數據機向該伺服端數據機 連線_,3連接不成功則寫錯誤,錄」結束; 藉由該客戶端數據機發送一齓試資料並等_待回應; 判斷回應資料是否相符,若不相符則寫錯誤紀錄、結 束;以及 測試成功、結束。 2 ·如申請專利範圍第1項所述自動測試數據機之方法, 其中該客戶端數據機與該伺服端數據機之還包 括有一模擬程控交換機,以模擬該客戶端與該伺服端 之該程控動作,並進行交換動作。 3 ‘如申請專利範圍第1項所述j動__1篇數據機法, 其中該建立連線狀態之步驟後,還包括有一步驟: 檢驗該客戶端數據機之配置狀態,若不正確則寫錯誤 紀錄、結束。 4 ·如申請專利範圍第3項所述自動測試數據機之方法, 其中該檢驗客戶端數據機配置狀態之步驟,包括有: 判斷該客戶端數據機是否正常,若不正常則寫錯誤紀 錄、結束;以及 判斷該客戶端數據機之機型,若不為該客戶端數據機 之預定機型則寫錯誤紀錄、結束。462162 VI. Application for patent scope 1 _ An automatic test 1 摅 „Friend of the machine today, the steps include: establishing a connection state,-a plurality of waiting places / (C 1 ient) end modem connected to a normal umbrella on Online (ο η 1 ine) server (server) modem; start a program to control the server _ pen client modem to connect to the server modem _3, if the connection is not successful, write an error, record " End; Use the client modem to send test data and wait for a response; determine whether the response data matches, if not, write an error log and end; and test success and end. 2 · The method for automatically testing a modem as described in item 1 of the scope of patent application, wherein the client modem and the server modem also include an analog program-controlled switch to simulate the client-server and the server-side program-control Action and exchange action. 3 'As described in item 1 of the scope of the patent application, the __1 data machine method, wherein after the step of establishing the connection state, it also includes a step: verify the configuration state of the client data machine, if it is incorrect, write Error log, end. 4 · The method for automatically testing the modem as described in item 3 of the scope of the patent application, wherein the step of checking the configuration status of the client modem includes: judging whether the client modem is normal, if not, write an error record, End; and determine the model of the client modem, if it is not the intended model of the client modem, write an error log and end. 第14頁 4 6 2 16 2 六、申請專利範圍 5 .如申請專利範圍第4項所述自動測試數據機之方法, 其中該判斷客戶端數據機是否正常之步驟,係由鍵盤 輸入賀式指令之M ATX3"指令。 6 .如申請專利範圍第4項所述自動測試數據機之方法, 其中該判斷客戶端數據機機型之步驟,係由鍵盤輸入 賀式指令之"ATI 3 ”指令。 7 .如申請專利範圍第1項所述自動測試數據機之方法, 其中使該客戶端數據機向該伺服端數據機連線之步 驟,係由鍵盤輸入賀式指令之” A T D ”指令再加上欲撥 號之電話號碼。 8 _如申請專利範圍第1項所述自動測試數據機之法, 其中該客戶端數據機發送測試資料並等待回應之步 驟,包括: 籍由該伺服端之數據機發出該回應資料至該客戶端之 數據機。 9 .如申請專利範圍第1項所述自動測試數據機之方法, 其中在該判斷回應資料是否相符步驟之後,還包括有 二步驟: 藉由選擇該客戶端之選單發送一測試檔案並等待回 應;以及 判斷回應檔案是否相符,若不相符則寫錯誤紀錄、結 束。 1 〇 .如申請專利範圍第9項所述自動測試數據機之方 法,其中該收/發測試檔案進行測試之步驟,+包Page 14 4 6 2 16 2 6. Application for patent scope 5. The method for automatically testing the modem as described in item 4 of the scope of patent application, wherein the step of judging whether the client modem is normal is to input a congratulatory instruction from a keyboard M ATX3 " instruction. 6. The method for automatically testing the modem as described in item 4 of the scope of patent application, wherein the step of judging the client modem model is to input the "ATI 3" instruction of the He-style instruction from the keyboard. 7. If the patent is applied for The method for automatically testing the modem described in the first item of the scope, wherein the step of connecting the client modem to the server modem is to input the "ATD" instruction of the congratulatory command by the keyboard, plus the telephone to be dialed. No. 8 _ The method of automatic test modem as described in item 1 of the scope of patent application, wherein the client modem sends test data and waits for a response, including: sending the response information to the server modem The client's modem 9. The method for automatically testing a modem as described in item 1 of the scope of patent application, wherein after the step of judging whether the response data matches, it also includes two steps: by selecting the client's menu Send a test file and wait for a response; and determine whether the response files match, if not, write an error record and end. 1 〇 If the scope of patent application 9 of the automatic test method data unit, wherein the transmit / receive step of testing the test file, package + 第15頁 4 6216 2 六、申請專利範圍 括: 藉由該伺服端數據機發出該回應檔案至該客戶端數 據機。 1 1 .如申請專利範圍第9 1項所述自動測試數據機之方 法,其中該選擇客戶端選單之步驟' 係利用 perfrm 之軟體。 1 2 ·如申請專利範圍第1_1項所述自動測試數據機之方 法,其中對該HyperTrm軟體加載鉤接(HOOK)函 數,將輸出重新定向以判別輸出結果。 1 3 ·如申請專利範圍第1項所述I動測試數攄禮^^ 法,其中該程控動作及該發送測試資料之步驟,係 利用Windows 應用程式介面(API)以發送鍵盤 ASCI I/SCAN 石馬 ° 1 4 · 一種自動測試數據機之芕法,其步驟包括: 建立一連線狀態,將一待測之客戶(C丨i e n t )端數 據機連接一常態位於線上(ο η 1 i n e )之伺服 (Server )端數據機; 啟動一程控動作使該客戶端數據機向該伺服端數據 機連線,若連接不成功則寫錯誤紀錄、結束: 藉由該客戶端數據機發送一測試資料並等待回應; 判斷回應資料是否相符,若不相符則寫錯誤紀錄、 結束;以及 測試成功、結束。 1 5 ·如申請專利範圍第1 4項所述自動測試數據機之方Page 15 4 6216 2 6. Scope of patent application Including: sending the response file to the client computer through the server computer. 11. The method for automatically testing a data machine as described in item 91 of the scope of patent application, wherein the step of selecting a client menu is a software using perfrm. 1 2 · The method of an automatic test data machine as described in item 1_1 of the scope of patent application, wherein the HyperTrm software is loaded with a hook function (HOOK) function, and the output is redirected to judge the output result. 1 3 · As described in item 1 of the scope of the patent application, the test method of the mobile test ^^ method, wherein the program-controlled action and the step of sending test data is to use the Windows application program interface (API) to send the keyboard ASCI I / SCAN Shima ° 1 4 · A method for an automatic test data machine, the steps include: establishing a connection state, connecting a client (C 丨 ient) data machine to be tested to a normal state on the line (ο η 1 ine) Server (server) end modem; start a program control action to make the client modem connect to the server modem, if the connection is not successful, write an error log, and end: send a test data through the client modem And wait for a response; determine whether the response data match, if not, write an error log and end; and test success and end. 1 5 · Method of automatic test data machine as described in item 14 of the scope of patent application 第16頁 4 6 2 16 2 六、申請專利範圍 &,其中該客戶端數據機與該伺服端數據機之連 接,還包括有一模擬程控交換機,以模擬該客戶端 與該伺服端之該程控動作,並進行交換動作。 1 6 ‘如申請專利範圍第1 4項所述自動測試數據機之方 、法,其中該建立連線狀態之步驟後,還包括有一步 驟: 檢驗該客戶端數據機之配置狀態,若不正確則寫錯 誤紀錄、結束。 1 7 ·如申請專利範圍第1 j項所述自動乱蓋機之t 法,其中該檢驗客戶端數據機配置狀態之步驟,包 括有: 判斷該客戶端數據機是否正常,若不正常則寫錯誤 紀錄、結束;以及 判斷該客戶端數據機之機型,若不為該客戶端數據 機之預定機型則寫錯誤紀錄、結束。 1 8 ‘如申請專利範圍第1 4項所述自動測試數據機之方 法,其中該客戶端數據機發送測試資料並等待回應 之步驟,包括: 藉由該伺服端之數據機發出該回應資料至該_.客戶端 之數據機。 1 9 ·如申請專利範圍第1 4項所述自動測試數據機之方 法,其中在該判斷回應資料是否相符步驟之後,還 包括有二步驟: 藉由選擇該客戶端之選單發送一測試檔案並等待回Page 16 4 6 2 16 2 6. The scope of patent application & wherein the connection between the client modem and the server modem also includes an analog program-controlled switch to simulate the program control of the client and the server Action and exchange action. 16 'As the method and method of automatic testing of the modem as described in item 14 of the scope of patent application, after the step of establishing the connection state, there is also a step: check the configuration state of the client modem, if it is incorrect Then write the error log and end. 1 7 · According to the method t of the automatic capping machine described in item 1j of the scope of patent application, the step of checking the configuration status of the client data machine includes: judging whether the client data machine is normal, and if it is abnormal, write Error record and end; and judge the model of the client modem, if it is not the predetermined model of the client modem, write the error record and end. 18 'The method for automatically testing a modem as described in item 14 of the scope of the patent application, wherein the step of the client modem sending test data and waiting for a response includes: sending the response data by the modem of the server to The _. Client's modem. 19 · The method for automatically testing a data machine as described in item 14 of the scope of patent application, wherein after the step of judging whether the response data matches, it further includes two steps: sending a test file by selecting a menu of the client and Wait back 第17頁 4 62 1 6 2 、申請專利範圍 應;以及 判斷回應檔案是否相符,若不相符則寫錯誤紀錄、 結束。 2 〇 ·如申請專利範圍第1 9項所述自動測試數據機之方 法,其中該收/發測試檔案進行測試之步驟,包 括: 藉由該伺服端數據機發出該回應檔案至該客戶端數 據機。Page 17 4 62 1 6 2 The scope of patent application should be; and judge whether the response files match, if not, write the error record and end. 2 〇 · The method of automatic test data machine as described in item 19 of the scope of patent application, wherein the step of testing the receiving / transmitting test file includes: sending the response file to the client data by the server data machine machine. 第18頁Page 18
TW88120671A 1999-11-26 1999-11-26 Method for automatically testing modem TW462162B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW88120671A TW462162B (en) 1999-11-26 1999-11-26 Method for automatically testing modem

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW88120671A TW462162B (en) 1999-11-26 1999-11-26 Method for automatically testing modem

Publications (1)

Publication Number Publication Date
TW462162B true TW462162B (en) 2001-11-01

Family

ID=21643157

Family Applications (1)

Application Number Title Priority Date Filing Date
TW88120671A TW462162B (en) 1999-11-26 1999-11-26 Method for automatically testing modem

Country Status (1)

Country Link
TW (1) TW462162B (en)

Similar Documents

Publication Publication Date Title
US8655336B1 (en) Remote issue logging and reporting of mobile station issues and diagnostic information to manufacturer
CN104765678B (en) The method and device tested the application on mobile terminal device
US7246273B2 (en) Method of, apparatus and graphical user interface for automatic diagnostics
US8621571B2 (en) Online service providing system, method, server and mobile device thereof, and computer program product
JP4868848B2 (en) Automatic detection and testing of new network connections
US20020083213A1 (en) Method and system for simulating and certifying complex business applications
CN112882953B (en) Automatic demonstration method and system of application program based on android debug bridge
CN109918310A (en) A kind of Modeling Platform interface test method
KR100877727B1 (en) Function and application verification apparatus for mobile terminal
CN109756879A (en) Method, apparatus, computer equipment and the storage medium of bluetooth equipment function check
KR100892141B1 (en) Test method for automatically testing portable device and apparatus there-for
CN113127486B (en) Information collection and storage method, device, equipment and storage medium
CN108540344B (en) Router upgrading test method and system
TW462162B (en) Method for automatically testing modem
JP5258231B2 (en) Remote management system and method for portable electronic device
CN110825617B (en) Method and device for simulating communication interaction between devices
CN117367546A (en) Automatic execution system and method for intelligent gas meter test cases
CN112749087A (en) Test service platform, electronic equipment and test service method
CN111444109A (en) Mobile terminal UI automatic testing method and system
CN111026651A (en) Test method, test device, storage medium and electronic equipment
CN116149915A (en) Pressure testing method and tool
CN114185772A (en) Software testing method and device, storage medium and computer equipment
CN109816342B (en) Contract management method, contract management device, terminal and computer readable storage medium
CN106681899A (en) Android-UI automatic testing method and system based on Jmeter
CN113687840A (en) Firmware burning method, device and related equipment

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent
MM4A Annulment or lapse of patent due to non-payment of fees