答案:User Inte易做图ce - How the user interacts with the product is very important, in part because in some cases the user will be someone very familiar with WebSite browsing and not necessarily a testing expert. The design we implemented takes this reality into account.
· "C" Scripting. We use interpreted "C" language as the control language because the syntax is well known, the language is fully expressive of most of the needed logic, and because it inte易做图ces well with other products.
· Files Inte易做图ce. We implemented a set of dialogs to capture critical information and made each of them recordable in a text file. The dialogs are associated with files that are kept in parallel with each browser invocation:
o Keysave file: This is the file that is being created the file is shown line by line during script recording as the user moves around the candidate WebSite.
o Timing file: Results of timings are shown and saved in this file.
o Messages file: Any error messages encountered are delivered to this file. For example, if a file can't be downloaded within the user-specified maximum time an error message is issued and the playback continues. (This helps preserve the utility of tests that are partially unsuccessful.)
o Event file: This file contains a complete log of recording and playback activities that are useful primarily to debug a test recording session or to better understand what actually went on during playback.
· Operational Features.Based on prior experience, the user inte易做图ce for CAPBAK/Web had to provide for several kinds of capabilities already known to be critical for a testing system. Many of these are critically important for automated testing because they assure an optimal combination of test script reliability and robustness.
o Script Capture/Replay: We had to be able to capture a user's actual behavior online, and be able to create scripts by hand.
void name() { /* Produced by CAPBAK/Web [IE] Ver. 1.5 Form Wizard */ /* (c) Copyright 1999 by Software Research, Inc. */ WT_InitLink("http://www.testworks.com/Products/Web/CAPBAK/example1/"); WT_SubmitForm(FORM:0:12, "RESET FORM"); WT_SelectOneRadio(FORM:0:0, "now", "TRUE"); WT_SelectOneRadio(FORM:0:1, "next", "TRUE"); WT_SelectOneRadio(FORM:0:2, "look", "TRUE"); WT_SelectOneRadio(FORM:0:3, "no", "TRUE"); WT_SelectCheckBox(FORM:0:4, "concerned", "TRUE"); WT_SelectCheckBox(FORM:0:5, "info", "TRUE"); WT_SelectCheckBox(FORM:0:6, "evaluate", "TRUE"); WT_SelectCheckBox(FORM:0:7, "send", "TRUE"); WT_FormTextInput(FORM:0:8, "TestWorks"); WT_FormTextInput(FORM:0:9, "TestWorks"); WT_FormTextInput(FORM:0:10, "TestWorks"); WT_FormTextInput(FORM:0:11, "TestWorks"); WT_SubmitForm(FORM:0:13, "SUBMIT FORM"); } 上一个:使用 IIS 5.0 调整 Web服务器的艺术与科学--1 更多图片编程知识:
访问www.zzzyk.com 试试 CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络, |