51Testing软件测试论坛

标题: a case about calling dll within silkTest(4Test) [打印本页]

作者: asks_zhuang    时间: 2005-6-16 16:42
标题: a case about calling dll within silkTest(4Test)
[ ] type LPCSTR is string
[-] dll "kernel32"
        [ ] int GetDriveTypeA (LPCSTR lpDrive)
        [ ]
[ ]
[ ] const Driver_CDROM=5
[ ]
[-] DriverType (string sDriver)
        [-] if (GetDriveTypeA(sDriver)==Driver_CDROM)
                [ ] print("this is CD-driver found")
        [-] else
                [ ] print (GetDriveTypeA(sDriver))
                [ ]
[ ]
[-] testcase TestDriver() appstate none
        [ ] DriverType("C:")
        [ ] DriverType("F")
作者: madskill    时间: 2005-6-22 13:58
这个是什么啊??
作者: asks_zhuang    时间: 2005-6-24 16:47
标题: 一个silktest中调用外部dll的例子
自动化测试工具都有自己的脚本语言,提供类似IDE的环境,
Silktest支持的脚本语言是4Test,上面的例子在其IDE环境调用外部dll
作者: seraphjiang    时间: 2005-11-17 17:28
What kind of dll does test silk support?
ATL,Com,.Net, or others?
作者: seraphjiang    时间: 2006-3-3 16:41
i just do some practise
the silk can explicit import dll and call it.
the dll should be wrote by c/c++
作者: winder238    时间: 2006-3-11 22:05
see




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2