
VbsScript
文章平均质量分 57
星火测吧
测试老鸟一枚
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【软件自动化测试 - VBScript 5】== Get the recently createed Folder or a File in a Parent Folder
Set objFileSysOb = CreateObject("Scripting.FileSystemObject") Set colFolderName = objFileSysOb.GetFolder("Give your Parent Folder path here") Set vFiles =colFolderName.Files dim f, datecreated, las原创 2011-08-17 14:24:57 · 535 阅读 · 0 评论 -
【软件自动化测试-QTP实战技能 28】== QTP_VbsTraining:Array Basics
作者:xuyubo 时间:2012/10/31 版权所有,侵权必究。 出处:http://blog.youkuaiyun.com/xuyubotest Array Basics: Some basic info about creating and using arrays. ' 简单的定义Array Dim strCustomers() ' 定义一个Array,然后赋值 Dim原创 2012-10-31 16:10:40 · 825 阅读 · 0 评论 -
Built-In Functions of VB Script
'1)Abs Function 'Returns the absolute value of a number Dim VNum VNum = Abs(-123.44) MsgBox VNum '2)ArrayFunction '返回包含在一个数组里的变量值 Dim anyA anyA = Array("V1","V2","V3") MsgBox anyA(0) '原创 2012-02-09 10:09:20 · 646 阅读 · 0 评论 -
【软件自动化测试 - VBScript 4】== QTP_Add Method (Dictionary)
Adds a key and item pair to a Dictionary object. An error occurs if the key already exists. The following example illustrates the use of the Add method. Dim d ' Create a variable. Set d = Cr原创 2010-05-11 12:47:00 · 541 阅读 · 0 评论 -
【软件自动化测试 - VBScript 7】= Using Locate to determine if specific text exists within a string
'Locate Method ' Using Locate to determine if specific text exists within a string. MsgBox LocateText("http://blog.youkuaiyun.com/xuyubotest", "xuyubotest") MsgBox LocateText("http://blog.youkuaiyun.com/x原创 2011-08-31 11:35:37 · 579 阅读 · 0 评论 -
【软件自动化测试 - VBScript 3】== VBScript中的类
'===================================== Class c Public a1 Public a2 Public Sub s() a1=1 a2=2 EndSub End Class Dim c1 Set c1=原创 2010-04-10 21:30:00 · 509 阅读 · 0 评论 -
【软件自动化测试 - VBScript 2】== VBS 函数
1. UCase:返回字符串的大写形式 UCase(string) eg: Dim MyWord MyWord = UCase("Hello World") ' 返回"HELLO WORLD" 2. Dim counter,num counter = 0 num = 9 Do Until num = 10 num = num -1 counter = c原创 2010-04-07 23:31:00 · 504 阅读 · 0 评论 -
【软件自动化测试 - VBScript 1】== FileSystemObject 基础知识
在QTP测试中,比较本地的两个文件是不是相同,需要使用VBScript的FileSystemObject对象,在此作简要的概述 一.基础FileSystemObject 1. 创建 FileSystemObject 对象 Dim fso Set fso = CreateObject("Scripting.FileSystemObject") Scripting 是类型原创 2009-10-16 17:31:00 · 579 阅读 · 0 评论 -
【软件自动化测试 - VBScript 8】== Questions?—— 正则表达式问题?
Set myReg = New RegExp myReg.Global = True myReg.IgnoreCase = True myReg.Pattern = "[a-z0-9]{2,7}@163.com" msgbox myReg.Test("test@163.com") msgbox myReg.Test("ttttttttteeeeeeeeeeet@163.com")原创 2011-09-08 11:01:55 · 746 阅读 · 3 评论 -
【软件自动化测试 - VBScript 6】== Example of Split, Instr, Mid functions
str = "This a test for InStr split lbound ubound mid" Dim a a = split(str," ") 'msgbox lbound(a) 'msgbox ubound(a) For i = lbound(a) to Ubound(a) msgbox(a(i)) next ' rec = InStr(1,str,"原创 2011-08-25 11:03:17 · 470 阅读 · 0 评论 -
软件测试技术讨论群
职业交流,不谈政治,诽谤性话题 QTP,LR,Selenium,Python网络安全; QTP企业内训,自动化框架培训原创 2014-08-10 23:41:46 · 1420 阅读 · 0 评论