07 2015 档案

[BAT] 以当前时间为名创建文件夹,将本地文件夹里的文件拷贝到远程共享目录,而且保证本地和Jenkins上运行都成功
摘要:@echo offrem connect to szotpc801net use * /del /yesNET USE X: \\10.66.234.95\d$ Autotest123 /user:SZDOMAIN1\autotester set AutoPath=%~dp0%AutoPath:~0... 阅读全文

posted @ 2015-07-30 09:23 张缤分 阅读(715) 评论(0) 推荐(0) 编辑

[Jenkins] 执行SoapUI的task,设置邮件内容为HTML+CSS
摘要:设置邮件内容:Default ContentProject : PA_Regression_Accuracy_Static Build Status : ${BUILD_STATUS} Automation Tool : SoapUI TP vs Live Test Results : TP ... 阅读全文

posted @ 2015-07-28 10:54 张缤分 阅读(563) 评论(0) 推荐(0) 编辑

[SoapUI] SOAP UI-Groovy Useful Commands
摘要:Hi All,I have posted the SOAPUI and Groovy useful commands that may help you in your testing. Below are the commands collected from various websites a... 阅读全文

posted @ 2015-07-27 13:46 张缤分 阅读(2227) 评论(1) 推荐(0) 编辑

[SoapUI] SoapUI命令行方式运行
摘要:https://www.soapui.org/test-automation/running-from-command-line/functional-tests.html TestRunner Command-Line Arguments To run functional tests from 阅读全文

posted @ 2015-07-23 15:52 张缤分 阅读(1063) 评论(0) 推荐(0) 编辑

Fix “Could Not Find This Item” When Deleting in Windows 7
摘要:If you’ve been using Windows for as long as I have, you have probably run into your share of weird error messages. One that I got recently when trying... 阅读全文

posted @ 2015-07-20 09:32 张缤分 阅读(651) 评论(0) 推荐(0) 编辑

[JAVA] DUMP
摘要:jmap -dump:live,format=b,file=D:\heap.bin 3156 3156是PID 阅读全文

posted @ 2015-07-17 19:48 张缤分 阅读(146) 评论(0) 推荐(0) 编辑

[SoapUI] 在Test Step 下加Script Assertion,用 messageExchange 获取当前步骤的response content
摘要://Get response content of the current requestdef response = messageExchange.getResponseContent()//Check dataassert response.contains("uaL5ist"), "FAIL... 阅读全文

posted @ 2015-07-17 17:21 张缤分 阅读(870) 评论(0) 推荐(0) 编辑

[SoapUI] 通过Groovy调用批处理文件.bat
摘要:import com.eviware.soapui.support.GroovyUtilsdef groovyUtils = new GroovyUtils( context )def projectDir = groovyUtils.projectPathdef proc = [ 'cmd', '... 阅读全文

posted @ 2015-07-16 14:30 张缤分 阅读(1000) 评论(0) 推荐(0) 编辑

[BAT] 通过批处理加host
摘要:echo. >> %WINDIR%\system32\drivers\etc\hosts & echo xxx.xxx.xxx.xx test_host >> %WINDIR%\system32\drivers\etc\hosts 阅读全文

posted @ 2015-07-16 12:34 张缤分 阅读(398) 评论(0) 推荐(0) 编辑

[BAT] 以当前时间为名创建文件夹,将本地文件夹里的文件拷贝到远程共享目录
摘要:@echo offset sourcePath=D:\DOAutomationTest\automation_do_ma_soapui\TestResult\PAset targetPath=\\szotwin2k801\AutomationReport\PAset directoryName=%d... 阅读全文

posted @ 2015-07-16 11:29 张缤分 阅读(361) 评论(0) 推荐(0) 编辑

[BAT] 通过命令行窗口重启或关闭远程电脑
摘要:在命令行窗口输入“shutdown -s”, 关闭远程计算机在命令行窗口输入“shutdown -r”, 重新启动远程计算机 阅读全文

posted @ 2015-07-16 10:06 张缤分 阅读(644) 评论(0) 推荐(0) 编辑

[BAT] 通过批处理删除7天前的报告,并删除当前目录下的空文件夹
摘要:set reportPath=D:\AutomationReportcd /d %reportPath%forfiles /p %reportPath% /s /m *.xml /d -7 /c "cmd /c del /f @path">nul 2>nulfor /f "tokens=*" %%a... 阅读全文

posted @ 2015-07-15 17:32 张缤分 阅读(551) 评论(0) 推荐(0) 编辑

[SoapUI] 在某个测试步骤下面增加Script Assertion,运用 messageExchange 获取response content
摘要:import com.eviware.soapui.support.GroovyUtilsimport com.eviware.soapui.support.XmlHolderimport org.w3c.dom.Nodeimport org.apache.commons.lang.StringUt... 阅读全文

posted @ 2015-07-14 11:18 张缤分 阅读(388) 评论(0) 推荐(0) 编辑

[SoapUI] 设置Excel的第一行为自动过滤
摘要:import org.apache.poi.ss.util.*XSSFWorkbook workbook = new XSSFWorkbook()XSSFSheet sheet = workbook.createSheet(sheetName)sheet.setAutoFilter(CellRang... 阅读全文

posted @ 2015-07-14 09:38 张缤分 阅读(437) 评论(0) 推荐(0) 编辑

[SoapUI] 比较两个不同环境下的XML Response, 从外部文件读取允许的偏差值,输出结果到Excel
摘要:import static java.lang.Math.* import java.text.NumberFormatimport java.awt.Colorimport com.eviware.soapui.support.GroovyUtilsimport com.eviware.soap... 阅读全文

posted @ 2015-07-10 18:10 张缤分 阅读(427) 评论(0) 推荐(0) 编辑

[JAVA] 小数转百分数
摘要:import java.text.NumberFormat;//获取格式化对象NumberFormat format = NumberFormat.getPercentInstance();//设置百分数精确度2即保留两位小数format.setMinimumFractionDigits(2);//... 阅读全文

posted @ 2015-07-10 17:46 张缤分 阅读(870) 评论(0) 推荐(0) 编辑

[JAVA] 冻结Excel的第一行或第一列
摘要:可以按照如下设置创建冻结窗口。sheet.createFreezePane( 3, 2, 3, 2 ); 前两个参数是你要用来拆分的列数和行数。后两个参数是下面窗口的可见象限,其中第三个参数是右边区域可见的左边列数,第四个参数是下面区域可见的首行。// 冻结第一行sheet.createFr... 阅读全文

posted @ 2015-07-10 17:16 张缤分 阅读(3102) 评论(0) 推荐(1) 编辑

[SoapUI] 比较两个不同环境下的XML Response, 从外部文件读取允许的偏差值,输出结果到文本文件
摘要:1. 获取TP和Live的xml response2. 以其中一个数据点 ticker 为基准进行比较,ticker相同才进行比对3. 从外部文件读取各个数据点允许的偏差值,偏差范围以内的不同认为是正常4. API中的数据点提供的是Data ID, 而用户希望错误日志以UI上的Data Name进行... 阅读全文

posted @ 2015-07-10 14:48 张缤分 阅读(301) 评论(0) 推荐(0) 编辑

[Study] 通过游戏学编程的网站
摘要:http://codecombat.com/ 阅读全文

posted @ 2015-07-08 11:28 张缤分 阅读(116) 评论(0) 推荐(0) 编辑

[SoapUI] SoapUI+Groovy中"org.apache.xmlbeans.XmlException: error:
摘要:把 def holder = groovyUtils.getXmlHolder("Get Token#Response") 改为def holder = groovyUtils.getXmlHolder( "Get Token#ResponseAsXml" ),即加了AsXml就可以了 阅读全文

posted @ 2015-07-07 18:13 张缤分 阅读(601) 评论(0) 推荐(0) 编辑

[SoapUI] 通过Groovy写文本文件
摘要:如果文件已经存在,先删除,然后向文件中追加失败信息if(maxRecordFail>0){ def testResultFile = new File(projectDir+"\\TestResult\\PA_Integration Testing\\"+ currentStepName+".... 阅读全文

posted @ 2015-07-07 10:41 张缤分 阅读(902) 评论(0) 推荐(0) 编辑

[SoapUI] context.expand 和 groovyUtils.getXmlHolder 有什么不一样
摘要:context.expand 和 groovyUtils.getXmlHolder 有什么不一样?互相之间怎么转换import com.eviware.soapui.support.GroovyUtilsdef groovyUtils = new GroovyUtils( context )def ... 阅读全文

posted @ 2015-07-07 10:22 张缤分 阅读(1090) 评论(0) 推荐(0) 编辑

[SoapUI] 通过Groovy获取SoapUI当前Project所在的目录
摘要:import com.eviware.soapui.support.GroovyUtilsdef groovyUtils = new GroovyUtils( context )def projectDir = groovyUtils.projectPathString xmlMapping = p... 阅读全文

posted @ 2015-07-07 09:34 张缤分 阅读(405) 评论(0) 推荐(0) 编辑

[SoapUI] 获取Cookie,并循环遍历当前Project下所有的Test Suite,Test Case,Test Step,将Cookie传递给这些Test Step
摘要:import com.eviware.soapui.support.types.StringToStringMap //Get all th cookies in the response , here the test step name is provideddef cookiesList = ... 阅读全文

posted @ 2015-07-06 09:48 张缤分 阅读(922) 评论(0) 推荐(0) 编辑

[SoapUI] 比较两个不同环境下XML格式的Response, 结果不同时设置Test Step的执行状态为失败
摘要:import org.custommonkey.xmlunit.*def responseTP=context.expand( '${Intraday Table_TP#Response}' )def responseLive=context.expand( '${Intraday Table_Li... 阅读全文

posted @ 2015-07-01 15:23 张缤分 阅读(281) 评论(0) 推荐(0) 编辑

[SoapUI] 通过编程的方式设置当前的Environment
摘要:testRunner.testCase.testSuite.project.setActiveEnvironment("Live") 阅读全文

posted @ 2015-07-01 11:38 张缤分 阅读(287) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示