![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Test Automation
文章平均质量分 56
formX
这个作者很懒,什么都没留下…
展开
-
[SilkTest]Overview of tags
When to record classes Consider these criteria when deciding whether to record classes for Java objects. When you record classes, SilkTest derives tags from the Java class name.Am I testing on原创 2007-03-01 14:12:00 · 958 阅读 · 0 评论 -
[Python]Django Step by Step 笔记(二)
创建 add.py: from django.http import HttpResponsetext = + def index(request): if request.POST.has_key(a): a = int(request.POST[a]) b = int(r原创 2007-07-17 11:51:00 · 2593 阅读 · 0 评论 -
[struts]Summarize
图 1表示一个基于Java技术典型的MVC网络应用: 图 2描述Struts的具体实现: 图 3通过一个活动图更具体描述接受请求直至返回响应的整个过程:原创 2007-04-17 11:27:00 · 820 阅读 · 0 评论 -
Emacs教程
Emacs 的命令通常包括控制键(就是上面标有 Ctrl或Ctl的那个)或者 是META键(上面标有EDIT或ALT)。为了方便起见我们将用下面的缩写来 代替这些键的全称:C- 意思是当敲入字符时同时按住控制键,因此,C-f表 示:按住控制键并且按 f 。M- 表示当键入时按住META或ALT或EDIT键转载 2007-08-01 11:03:00 · 1192 阅读 · 0 评论 -
[Python]Regular Expression Syntax
Element Meaning . Matches any character except /n(if DOTALL, also matches /n)原创 2007-08-15 16:02:00 · 810 阅读 · 0 评论 -
[Python]Two ways to use Threading
Python的Lib里,提供了两种使用Threading的方法:一、函数式:import timeimport threaddef timer(no, interval): while True: print Thread: (%d) Time: %s % (no, time.ctime()) time.sleep(interval)def test(原创 2007-05-30 15:27:00 · 674 阅读 · 0 评论 -
[Junit]What's unit test
unit test: A unit test examines the behavior of a distinct unit of work. Within a Java application, the "distinct unit of work" is often(but not always) a single method. By contrast, integration te原创 2007-11-05 09:35:00 · 611 阅读 · 0 评论 -
[Junit]What's API contract
API contract: A view of an Application Programming Interface(API) as a formal agreement between the caller and the callee. Often the unit tests help define the API contract by demonstrating the expec原创 2007-11-05 09:40:00 · 959 阅读 · 0 评论 -
[Junit]What's framework
framework: A framework is a semi-complete application1. A framework provides a reusable, common structure that can be shared between applications. Develops incorporate the framework into their own ap原创 2007-11-05 09:29:00 · 737 阅读 · 0 评论 -
[Junit]Understanding unit test framework
There are several best practices that unit testing frameworks should follow. These seemingly minor improvements in the TestCalculator program hightlight three rules that(in our experience) all unit te原创 2007-11-05 10:31:00 · 598 阅读 · 0 评论 -
[JUnit]What are TestCase, TestSuite, BaseTestRunner
TestCase(or test case): A class that extends the JUnit TestCase class. It contains one or more tests represented by testXXX methods. A test case is used to group together tests that exercise common原创 2007-11-05 13:41:00 · 859 阅读 · 0 评论 -
[Spring]IoC
IoC设计模式,重点关注组件的依赖性、培植以及生命周期。 当然,IoC也适用于简单类, 而不只是组件。除了具有”Dependency Injection”(依赖注入)的昵称外,IoC还有另一个称呼,即Hollywood原则(“Don’t call me, I’ll call you”, 即请不要调用我,我将调用你)。 通常,应用代码需要告知容器或框架,让它们找到自身所需要的类,然后再由应用代码创建原创 2007-11-08 13:34:00 · 586 阅读 · 0 评论 -
[Emacs]基本编辑键列表
写在前面 `C- Control-(即 Ctrl-),按住 Ctrl 键再按其他键 `M- Meta-(或 Alt-),按住 Alt 键再按其他键;或按一下 ESC,再按其他键 `C-M- Control-Alt-,按住 Ctrl 和 Alt 两个键再按其他键 point原创 2007-11-19 14:53:00 · 620 阅读 · 0 评论 -
JUnit+ANT自动测试实验
目标:1. 使用ANT自动化测试。2. 自动化测试报告。3. 定时执行自动化测试。(未实现。)被测试类 DefaultCalculator.java:package com.don.classes;/** *//** * @author Administrator * */public class DefaultCalculator ...{ private int x, y;原创 2008-04-27 15:05:00 · 961 阅读 · 0 评论 -
[Python]Django Step by Step 笔记(一)
安装:pyton setup.py install安装完毕后, Django会自动在 [python install dir]/scripts目录下安装 django-admin.py。 生成项目目录django-admin.py startproject newtest当前目录下创建newtest目录, 进去后可以看到四个文件:__init__.py : 表示这是一个Pyt原创 2007-07-17 11:36:00 · 2461 阅读 · 0 评论 -
[Python]Install Django Web Framework with Mod_python
配置mod_python1.使用apache_2.0.54-win32-x86-no_ssl.msihttp://archive.apache.org/dist/httpd/binaries/win32/ 2.安装mod_python-3.2.8.win32-py2.4.exehttp://apache.justdn.org/httpd/modpython/ mod_python中文文原创 2007-04-20 09:15:00 · 1054 阅读 · 0 评论 -
[SilkTest]Overview of application states
Overview of application states When testing an application, youre likely to have a number of testcases that have identical setup steps. Rather than record the same steps over and again you can re原创 2007-03-01 12:50:00 · 643 阅读 · 0 评论 -
[SilkTest]ANYTYPE data type and AnyWin Class
ANYTYPE data type Description A variable of type ANYTYPE stores data of any type, including user-defined types. Note Be careful when you give a variable type AN原创 2007-03-06 10:22:00 · 1186 阅读 · 0 评论 -
SSH客户端之SSH Secure Shell 的连接方法
SSH客户端之SSH Secure Shell 的连接方法原创 2007-03-12 15:47:00 · 2649 阅读 · 0 评论 -
[Python]Processing a String One Character at a Time
ProblemYou want to process a string one character at a time.SolutionYou can build a list whose items are the strings characters(meaning that the items are strings, each of length of onePython doesn原创 2007-06-28 16:33:00 · 876 阅读 · 0 评论 -
[Python]Converting Between Characters and Numeric Codes
ProblemYou need to turn a character into its numeric ASCII(ISO) or Unicode code, and vice versa. SolutionThats what the built-in functions ord and chr are for:>>>print ord(a)97>>>print chr(98原创 2007-06-28 16:54:00 · 691 阅读 · 0 评论 -
[Python]Sequence
In Python, string objects are immutable. Therefore, any operation on a string, including string concatenation, produces a new string object, rather than modifying an existing one. concatenating N str原创 2007-06-29 09:19:00 · 1480 阅读 · 0 评论 -
A example for Socket connect use Python
Server:import sockets=socket.socket(socket.AF_INET, socket.SOCK_STREAM)s.bind((119.119.117.32,25001)) s.listen(5)cs,address = s.accept()print got connected from,addresscs.send(byebye)ra=c原创 2007-04-05 08:48:00 · 1679 阅读 · 0 评论 -
[struts]Write web.xml
Because a Struts application is a Web application, it has to follow the same rules. that any Web application has to follow: Every Web application must have a web.xml configuration file. The web.xml原创 2007-04-09 17:42:00 · 732 阅读 · 0 评论 -
[Python]Queue -- A synchronized queue class
The Queue module implements a multi-producer, multi-consumer FIFO queue. It is especially useful in threads programming when information must be exchanged safely between multiple threads. The Queue原创 2007-04-10 16:48:00 · 1373 阅读 · 0 评论 -
[Python]Apache with Mod_python
apache是分步骤处理请求的,例如,第一步可能是确定用户,接下来验证用户是不是允许访问特定的文件,然后读这个文件并把它发送到客户端。一个典型的静态文件请求包括三步: (1)解析请求的URI为文件在服务器上的路径。 (2)读文件并把它发送到客户端。 (3)记录请求日志。这个日志中记录了执行的步骤,记录内容的多少取决于配置文件中的设置。 一个处原创 2007-04-12 09:15:00 · 2421 阅读 · 1 评论 -
[Python]private and public
在Python中没有显式的private和public限定符,如果要将一个方法声明为private的,只要在方法名前面加上__即可,如:class demo: def __init__(self):pass def __private_method(self): print This is a private method def public原创 2007-04-12 17:46:00 · 4988 阅读 · 0 评论 -
[Python]alter or assign an object
To become an effective Python programmer, it is crucial that you learn to draw the distinction between altering an object and assigning to a name, which previously happened to refer to the object.原创 2007-07-17 09:39:00 · 918 阅读 · 0 评论 -
[Python]Django Step by Step 笔记(三)
创建 list.py: #coding=utf-8from django.shortcuts import render_to_responseaddress= [ {name: 张三, address: 地址一}, {name: 李四, address: 地址二} ]def原创 2007-07-17 13:30:00 · 1392 阅读 · 0 评论 -
ANT脚本的一个模板
原创 2008-05-05 15:28:00 · 599 阅读 · 0 评论