QTP执行后执行结果详细信息(Result Details)中没有截图

本文介绍了在使用QTP进行自动化测试过程中,如何正确配置工具选项以确保测试结果中包含截图。这一配置对于测试过程的审查及错误定位至关重要。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<!-- 与君共勉!欢迎批评指正。-->

QTP测试学习问题记录:
 额,今天run了我录制的脚本,发现执行后的结果页面上的“结果详细信息”中没有截图,后来发现是Tools-->Options中的设置不正确。要按照下面的设置,才能有截图喔。

 


 

 

附上结果图:



 
 

root@localhost:~# grep "43c1bd5b-e814-4472-abcf-09890d8b3e6d" /var/log/cloudstack/management/management-server.log | grep -i "unable to orchestrate\|startvm" 2025-06-06 10:08:40,909 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl$5] (API-Job-Executor-37:[ctx-7ca01c3e, job-182]) (logid:56420f04) Executing AsyncJobVO: {id:182, userId: 2, accountId: 2, instanceType: VirtualMachine, instanceId: 17, cmd: org.apache.cloudstack.api.command.admin.vm.DeployVMCmdByAdmin, cmdInfo: {"sessionkey":"KKmUVYGkbnyKM63dzxH36OxDJrc","hostid":"3bad4d09-83b9-429c-af4f-04ebebda1ab5","httpmethod":"GET","ctxAccountId":"2","uuid":"43c1bd5b-e814-4472-abcf-09890d8b3e6d","domainid":"a9e2c85b-24bd-11f0-aaeb-da5dc193c38d","cmdEventType":"VM.CREATE","diskofferingid":"fd8e6231-a198-4c96-816a-0a2346640525","bootmode":"LEGACY","iothreadsenabled":"false","hypervisor":"KVM","ctxStartEventId":"531","id":"17","ctxDetails":"{\"interface com.cloud.offering.ServiceOffering\":\"4406baad-00b0-4bf9-8138-92e912ee9374\",\"interface com.cloud.org.Cluster\":\"793413c4-8c0e-48e6-aa7d-898d527e3806\",\"interface com.cloud.domain.Domain\":\"a9e2c85b-24bd-11f0-aaeb-da5dc193c38d\",\"interface com.cloud.template.VirtualMachineTemplate\":\"1c7482f1-f2a2-41cc-bfd3-c90b0a98e2dc\",\"interface com.cloud.dc.DataCenter\":\"7c3a0411-5e07-4793-86b1-ddcfcea14f3f\",\"interface com.cloud.host.Host\":\"3bad4d09-83b9-429c-af4f-04ebebda1ab5\",\"interface com.cloud.dc.Pod\":\"37db3949-b6e4-45ae-a2c9-27351f3486ae\",\"interface com.cloud.offering.DiskOffering\":\"fd8e6231-a198-4c96-816a-0a2346640525\",\"interface com.cloud.vm.VirtualMachine\":\"43c1bd5b-e814-4472-abcf-09890d8b3e6d\"}","dynamicscalingenabled":"true","keypairs":"","boottype":"BIOS","clusterid":"793413c4-8c0e-48e6-aa7d-898d527e3806","templateid":"1c7482f1-f2a2-41cc-bfd3-c90b0a98e2dc","startvm":"false","serviceofferingid":"4406baad-00b0-4bf9-8138-92e912ee9374","response":"json","ctxUserId":"2","zoneid":"7c3a0411-5e07-4793-86b1-ddcfcea14f3f","podid":"37db3949-b6e4-45ae-a2c9-27351f3486ae","account":"admin","affinitygroupids":""}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 271212420031755, completeMsid: null, lastUpdated: null, lastPolled: null, created: null, removed: null} 2025-06-06 10:08:40,913 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (qtp1845623216-1302:[ctx-4ecee873, ctx-d47bb946]) (logid:982c0a08) submit async job-182, details: AsyncJobVO: {id:182, userId: 2, accountId: 2, instanceType: VirtualMachine, instanceId: 17, cmd: org.apache.cloudstack.api.command.admin.vm.DeployVMCmdByAdmin, cmdInfo: {"sessionkey":"KKmUVYGkbnyKM63dzxH36OxDJrc","hostid":"3bad4d09-83b9-429c-af4f-04ebebda1ab5","httpmethod":"GET","ctxAccountId":"2","uuid":"43c1bd5b-e814-4472-abcf-09890d8b3e6d","domainid":"a9e2c85b-24bd-11f0-aaeb-da5dc193c38d","cmdEventType":"VM.CREATE","diskofferingid":"fd8e6231-a198-4c96-816a-0a2346640525","bootmode":"LEGACY","iothreadsenabled":"false","hypervisor":"KVM","ctxStartEventId":"531","id":"17","ctxDetails":"{\"interface com.cloud.offering.ServiceOffering\":\"4406baad-00b0-4bf9-8138-92e912ee9374\",\"interface com.cloud.org.Cluster\":\"793413c4-8c0e-48e6-aa7d-898d527e3806\",\"interface com.cloud.domain.Domain\":\"a9e2c85b-24bd-11f0-aaeb-da5dc193c38d\",\"interface com.cloud.template.VirtualMachineTemplate\":\"1c7482f1-f2a2-41cc-bfd3-c90b0a98e2dc\",\"interface com.cloud.dc.DataCenter\":\"7c3a0411-5e07-4793-86b1-ddcfcea14f3f\",\"interface com.cloud.host.Host\":\"3bad4d09-83b9-429c-af4f-04ebebda1ab5\",\"interface com.cloud.dc.Pod\":\"37db3949-b6e4-45ae-a2c9-27351f3486ae\",\"interface com.cloud.offering.DiskOffering\":\"fd8e6231-a198-4c96-816a-0a2346640525\",\"interface com.cloud.vm.VirtualMachine\":\"43c1bd5b-e814-4472-abcf-09890d8b3e6d\"}","dynamicscalingenabled":"true","keypairs":"","boottype":"BIOS","clusterid":"793413c4-8c0e-48e6-aa7d-898d527e3806","templateid":"1c7482f1-f2a2-41cc-bfd3-c90b0a98e2dc","startvm":"false","serviceofferingid":"4406baad-00b0-4bf9-8138-92e912ee9374","response":"json","ctxUserId":"2","zoneid":"7c3a0411-5e07-4793-86b1-ddcfcea14f3f","podid":"37db3949-b6e4-45ae-a2c9-27351f3486ae","account":"admin","affinitygroupids":""}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 271212420031755, completeMsid: null, lastUpdated: null, lastPolled: null, created: null, removed: null} 2025-06-06 10:08:40,913 INFO [c.c.a.ApiServlet] (qtp1845623216-1302:[ctx-4ecee873, ctx-d47bb946]) (logid:982c0a08) (userId=2 accountId=2 sessionId=node0focp608p4cn41xwvxk36x64mv14) 192.168.11.151 -- GET zoneid=7c3a0411-5e07-4793-86b1-ddcfcea14f3f&podid=37db3949-b6e4-45ae-a2c9-27351f3486ae&clusterid=793413c4-8c0e-48e6-aa7d-898d527e3806&hostid=3bad4d09-83b9-429c-af4f-04ebebda1ab5&boottype=BIOS&bootmode=LEGACY&dynamicscalingenabled=true&iothreadsenabled=false&templateid=1c7482f1-f2a2-41cc-bfd3-c90b0a98e2dc&hypervisor=KVM&startvm=false&serviceofferingid=4406baad-00b0-4bf9-8138-92e912ee9374&diskofferingid=fd8e6231-a198-4c96-816a-0a2346640525&affinitygroupids=&keypairs=&account=admin&domainid=a9e2c85b-24bd-11f0-aaeb-da5dc193c38d&command=deployVirtualMachine&response=json&sessionkey=KKmUVYGkbnyKM63dzxH36OxDJrc 200 {"deployvirtualmachineresponse":{"id":"43c1bd5b-e814-4472-abcf-09890d8b3e6d","jobid":"56420f04-37e1-4d4e-9b9e-1d4d58bc1ac9"}} 2025-06-06 10:09:19,654 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl$5] (API-Job-Executor-38:[ctx-017f2004, job-183]) (logid:5a73dac6) Executing AsyncJobVO: {id:183, userId: 2, accountId: 2, instanceType: VirtualMachine, instanceId: 17, cmd: org.apache.cloudstack.api.command.admin.vm.StartVMCmdByAdmin, cmdInfo: {"sessionkey":"KKmUVYGkbnyKM63dzxH36OxDJrc","hostid":"3bad4d09-83b9-429c-af4f-04ebebda1ab5","httpmethod":"GET","clusterid":"793413c4-8c0e-48e6-aa7d-898d527e3806","ctxAccountId":"2","uuid":"43c1bd5b-e814-4472-abcf-09890d8b3e6d","cmdEventType":"VM.START","considerlasthost":"true","response":"json","ctxUserId":"2","ctxStartEventId":"533","id":"43c1bd5b-e814-4472-abcf-09890d8b3e6d","ctxDetails":"{\"interface com.cloud.host.Host\":\"3bad4d09-83b9-429c-af4f-04ebebda1ab5\",\"interface com.cloud.dc.Pod\":\"37db3949-b6e4-45ae-a2c9-27351f3486ae\",\"interface com.cloud.org.Cluster\":\"793413c4-8c0e-48e6-aa7d-898d527e3806\",\"interface com.cloud.vm.VirtualMachine\":\"43c1bd5b-e814-4472-abcf-09890d8b3e6d\"}","podid":"37db3949-b6e4-45ae-a2c9-27351f3486ae"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 271212420031755, completeMsid: null, lastUpdated: null, lastPolled: null, created: null, removed: null} 2025-06-06 10:09:19,655 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (qtp1845623216-1943:[ctx-b2a6a1ae, ctx-fc6e5df8]) (logid:6e62c76a) submit async job-183, details: AsyncJobVO: {id:183, userId: 2, accountId: 2, instanceType: VirtualMachine, instanceId: 17, cmd: org.apache.cloudstack.api.command.admin.vm.StartVMCmdByAdmin, cmdInfo: {"sessionkey":"KKmUVYGkbnyKM63dzxH36OxDJrc","hostid":"3bad4d09-83b9-429c-af4f-04ebebda1ab5","httpmethod":"GET","clusterid":"793413c4-8c0e-48e6-aa7d-898d527e3806","ctxAccountId":"2","uuid":"43c1bd5b-e814-4472-abcf-09890d8b3e6d","cmdEventType":"VM.START","considerlasthost":"true","response":"json","ctxUserId":"2","ctxStartEventId":"533","id":"43c1bd5b-e814-4472-abcf-09890d8b3e6d","ctxDetails":"{\"interface com.cloud.host.Host\":\"3bad4d09-83b9-429c-af4f-04ebebda1ab5\",\"interface com.cloud.dc.Pod\":\"37db3949-b6e4-45ae-a2c9-27351f3486ae\",\"interface com.cloud.org.Cluster\":\"793413c4-8c0e-48e6-aa7d-898d527e3806\",\"interface com.cloud.vm.VirtualMachine\":\"43c1bd5b-e814-4472-abcf-09890d8b3e6d\"}","podid":"37db3949-b6e4-45ae-a2c9-27351f3486ae"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 271212420031755, completeMsid: null, lastUpdated: null, lastPolled: null, created: null, removed: null} 2025-06-06 10:09:19,686 INFO [c.c.a.ApiServlet] (qtp1845623216-8085:[ctx-0b7e9347, ctx-92e7afbb]) (logid:c5bf0bd7) (userId=2 accountId=2 sessionId=node0focp608p4cn41xwvxk36x64mv14) 192.168.11.151 -- GET jobId=5a73dac6-1027-4127-9b7e-87e93bdfd898&command=queryAsyncJobResult&response=json&sessionkey=KKmUVYGkbnyKM63dzxH36OxDJrc 200 {"queryasyncjobresultresponse":{"accountid":"fb64fc75-24bf-11f0-aaeb-da5dc193c38d","account":"admin","domainid":"a9e2c85b-24bd-11f0-aaeb-da5dc193c38d","domainpath":"ROOT","userid":"fb65464c-24bf-11f0-aaeb-da5dc193c38d","cmd":"org.apache.cloudstack.api.command.admin.vm.StartVMCmdByAdmin","jobstatus":0,"jobprocstatus":0,"jobresultcode":0,"jobinstancetype":"VirtualMachine","jobinstanceid":"43c1bd5b-e814-4472-abcf-09890d8b3e6d","managementserverid":271212420031755,"created":"2025-06-06T10:09:19+0800","jobid":"5a73dac6-1027-4127-9b7e-87e93bdfd898"}} 2025-06-06 10:09:22,707 INFO [c.c.a.ApiServlet] (qtp1845623216-8085:[ctx-3ae4ccd3, ctx-8e584dab]) (logid:9081c0a6) (userId=2 accountId=2 sessionId=node0focp608p4cn41xwvxk36x64mv14) 192.168.11.151 -- GET jobId=5a73dac6-1027-4127-9b7e-87e93bdfd898&command=queryAsyncJobResult&response=json&sessionkey=KKmUVYGkbnyKM63dzxH36OxDJrc 200 {"queryasyncjobresultresponse":{"accountid":"fb64fc75-24bf-11f0-aaeb-da5dc193c38d","account":"admin","domainid":"a9e2c85b-24bd-11f0-aaeb-da5dc193c38d","domainpath":"ROOT","userid":"fb65464c-24bf-11f0-aaeb-da5dc193c38d","cmd":"org.apache.cloudstack.api.command.admin.vm.StartVMCmdByAdmin","jobstatus":0,"jobprocstatus":0,"jobresultcode":0,"jobinstancetype":"VirtualMachine","jobinstanceid":"43c1bd5b-e814-4472-abcf-09890d8b3e6d","managementserverid":271212420031755,"created":"2025-06-06T10:09:19+0800","jobid":"5a73dac6-1027-4127-9b7e-87e93bdfd898"}} 2025-06-06 10:09:24,566 ERROR [c.c.v.ClusteredVirtualMachineManagerImpl] (Work-Job-Executor-61:[ctx-e7dddebb, job-183/job-184, ctx-b1948328]) (logid:5a73dac6) Unable to orchestrate start VM instance {"id":17,"instanceName":"i-2-17-VM","type":"User","uuid":"43c1bd5b-e814-4472-abcf-09890d8b3e6d"} due to [Template 206 could not be downloaded on pool 1, failing after trying on several hosts Details: Unable to download template: Error on HTTP request: Connection refused]. 2025-06-06 10:09:24,587 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-38:[ctx-017f2004, job-183]) (logid:5a73dac6) Unexpected exception while executing org.apache.cloudstack.api.command.admin.vm.StartVMCmdByAdmin com.cloud.utils.exception.CloudRuntimeException: Unable to orchestrate the start of VM instance {"instanceName":"i-2-17-VM","uuid":"43c1bd5b-e814-4472-abcf-09890d8b3e6d"}. 2025-06-06 10:09:24,587 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-38:[ctx-017f2004, job-183]) (logid:5a73dac6) Complete async job-183, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"Unable to orchestrate the start of VM instance {"instanceName":"i-2-17-VM","uuid":"43c1bd5b-e814-4472-abcf-09890d8b3e6d"}."} 2025-06-06 10:09:25,725 INFO [c.c.a.ApiServlet] (qtp1845623216-1943:[ctx-522b420a, ctx-eb5da18d]) (logid:d908b696) (userId=2 accountId=2 sessionId=node0focp608p4cn41xwvxk36x64mv14) 192.168.11.151 -- GET jobId=5a73dac6-1027-4127-9b7e-87e93bdfd898&command=queryAsyncJobResult&response=json&sessionkey=KKmUVYGkbnyKM63dzxH36OxDJrc 200 {"queryasyncjobresultresponse":{"accountid":"fb64fc75-24bf-11f0-aaeb-da5dc193c38d","account":"admin","domainid":"a9e2c85b-24bd-11f0-aaeb-da5dc193c38d","domainpath":"ROOT","userid":"fb65464c-24bf-11f0-aaeb-da5dc193c38d","cmd":"org.apache.cloudstack.api.command.admin.vm.StartVMCmdByAdmin","jobstatus":2,"jobprocstatus":0,"jobresultcode":530,"jobresulttype":"object","jobresult":{"errorcode":530,"errortext":"Unable to orchestrate the start of VM instance {\"instanceName\":\"i-2-17-VM\",\"uuid\":\"43c1bd5b-e814-4472-abcf-09890d8b3e6d\"}."},"jobinstancetype":"VirtualMachine","jobinstanceid":"43c1bd5b-e814-4472-abcf-09890d8b3e6d","created":"2025-06-06T10:09:19+0800","completed":"2025-06-06T10:09:24+0800","jobid":"5a73dac6-1027-4127-9b7e-87e93bdfd898"}} root@localhost:~#
最新发布
06-07
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值