我正在尝试使用VSTS运行jmeter负载测试。我创建了新的VSTS版本,在其中添加了两个任务。从天蓝色blob容器将JMX和受支持的CSV文件下载到工作目录 $(System.DefaultWorkingDirectory)的一项任务。第二项任务“基于云的Apache JMeter负载测试”是运行负载测试。
版本成功运行,当我检查日志时,显示错误
2019-02-15 07:30:19,014 INFO o.a.j.u.JMeterUtils: Setting Locale to en_US
2019-02-15 07:30:19,045 INFO o.a.j.JMeter: Loading user properties from: C:\Packages\Plugins\Microsoft.Compute.CustomScriptExtension\1.8\Downloads\0\approot\JMeterLoadTest\clt_jmeterdrop\bin\user.properties
2019-02-15 07:30:19,045 INFO o.a.j.JMeter: Loading system properties from: C:\Packages\Plugins\Microsoft.Compute.CustomScriptExtension\1.8\Downloads\0\approot\JMeterLoadTest\clt_jmeterdrop\bin\system.properties
2019-02-15 07:30:19,060 INFO o.a.j.JMeter: Copyright (c) 1998-2017 The Apache Software Foundation
2019-02-15 07:30:19,060 INFO o.a.j.JMeter: Version 3.2 r1790748
2019-02-15 07:30:19,060 INFO o.a.j.JMeter: java.version=1.8.0_172
2019-02-15 07:30:19,060 INFO o.a.j.JMeter: java.vm.name=Java HotSpot(TM) 64-Bit Server VM
2019-02-15 07:30:19,060 INFO o.a.j.JMeter: os.name=Windows Server 2012 R2
2019-02-15 07:30:19,060 INFO o.a.j.JMeter: os.arch=amd64
2019-02-15 07:30:19,060 INFO o.a.j.JMeter: os.version=6.3
2019-02-15 07:30:19,060 INFO o.a.j.JMeter: file.encoding=Cp1252
2019-02-15 07:30:19,060 INFO o.a.j.JMeter: Max memory =4294967296
2019-02-15 07:30:19,060 INFO o.a.j.JMeter: Available Processors =1
2019-02-15 07:30:19,060 INFO o.a.j.JMeter: Default Locale=English (United States)
2019-02-15 07:30:19,060 INFO o.a.j.JMeter: JMeter Locale=English (United States)
2019-02-15 07:30:19,060 INFO o.a.j.JMeter: JMeterHome=C:\Packages\Plugins\Microsoft.Compute.CustomScriptExtension\1.8\Downloads\0\approot\JMeterLoadTest\clt_jmeterdrop
2019-02-15 07:30:19,060 INFO o.a.j.JMeter: user.dir =C:\Windows\system32
2019-02-15 07:30:19,060 INFO o.a.j.JMeter: PWD =C:\Windows\System32
2019-02-15 07:30:19,060 INFO o.a.j.JMeter: IP: 10.0.0.4 Name: vstsloadagent0 FullName: vstsloadagent0.dvl4ijrmhd2ulanefjtd3ukcba.ax.internal.cloudapp.net
2019-02-15 07:30:19,060 INFO o.a.j.s.FileServer: Default base='C:\Windows\system32'
2019-02-15 07:30:19,060 INFO o.a.j.s.FileServer: Set new base='d:\clt_0\td\a0287\TestRun\Out'
2019-02-15 07:30:19,232 INFO o.a.j.s.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2
2019-02-15 07:30:19,279 INFO o.a.j.s.SaveService: Using SaveService properties file encoding UTF-8
2019-02-15 07:30:19,295 INFO o.a.j.s.SaveService: Using SaveService properties version 3.2
2019-02-15 07:30:19,295 INFO o.a.j.s.SaveService: Loading file: d:\clt_0\td\a0287\TestRun\Out\SanityTestScriptnew.JMX
2019-02-15 07:30:19,357 INFO o.a.j.p.h.c.CookieManager: Settings: Delete null: true Check: true Allow variable: true Save: false Prefix: COOKIE_
2019-02-15 07:30:19,357 INFO o.a.j.p.h.c.CacheManager: Will only cache the following methods: [GET]
2019-02-15 07:30:19,420 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2019-02-15 07:30:19,420 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xhtml+xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2019-02-15 07:30:19,420 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2019-02-15 07:30:19,420 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2019-02-15 07:30:19,420 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
2019-02-15 07:30:19,420 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser
2019-02-15 07:30:21,420 INFO o.a.j.JMeter: Creating summariser <summary>
2019-02-15 07:30:21,420 INFO o.a.j.e.StandardJMeterEngine: Running the test!
2019-02-15 07:30:21,420 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2019-02-15 07:30:21,420 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2019-02-15 07:30:21,436 INFO o.a.j.e.u.CompoundVariable: Note: Function class names must contain the string: '.functions.'
2019-02-15 07:30:21,436 INFO o.a.j.e.u.CompoundVariable: Note: Function class names must not contain the string: '.gui.'
2019-02-15 07:30:22,576 ERROR o.a.j.p.h.c.CookieManager: Unable to load or invoke class: org.apache.jmeter.protocol.http.control.HC3CookieHandler
org.apache.jorphan.util.JMeterException: java.lang.ClassNotFoundException: org.apache.jmeter.protocol.http.control.HC3CookieHandler
at org.apache.jorphan.reflect.ClassTools.construct(ClassTools.java:92) ~[jorphan.jar:3.2 r1790748]
at org.apache.jmeter.protocol.http.control.CookieManager.testStarted(CookieManager.java:415) [ApacheJMeter_http.jar:3.2 r1790748]
at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfStart(StandardJMeterEngine.java:218) [ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:388) [ApacheJMeter_core.jar:3.2 r1790748]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_172]
Caused by: java.lang.ClassNotFoundException: org.apache.jmeter.protocol.http.control.HC3CookieHandler
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_172]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_172]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_172]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_172]
at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_172]
at org.apache.jorphan.reflect.ClassTools.construct(ClassTools.java:86) ~[jorphan.jar:3.2 r1790748]
... 4 more
2019-02-15 07:30:22,717 INFO j.CLTListenerPlugin: 777-7777-7777-777 - Test Started.
2019-02-15 07:30:22,717 INFO j.CLTListenerPlugin: 777-7777-7777-777 - Initializing agent settings from TestExecutionHostConfiguration
2019-02-15 07:30:22,748 INFO j.CLTListenerPlugin: 777-7777-7777-777 - Initialized the host configuration. Run Id - a0287877-9672-4573-95cb-a8709dc7ac6d, Tenant ID - 3e93f9e6-f427-48e1-b37b-994d196e1121, AgentId - d0a2f074-4bc2-4eb8-a1c4-a452c35a9073
2019-02-15 07:30:22,748 INFO j.CLTListenerPlugin: a0287877-9672-4573-95cb-a8709dc7ac6d - Started logging for RunId - a0287877-9672-4573-95cb-a8709dc7ac6d
2019-02-15 07:30:22,748 INFO j.CLTListenerPlugin: a0287877-9672-4573-95cb-a8709dc7ac6d - Run Sample rate (seconds) - 15
2019-02-15 07:30:22,764 INFO c.AzureBlobStorage: 777-7777-7777-777 - AzureBlobStorage : ContainerPrefix: ets-containerfor-
2019-02-15 07:30:22,764 INFO c.AzureBlobStorage: 777-7777-7777-777 - ets-containerfor-3e93f9e6-f427-48e1-b37b-994d196e1121 is a valid container name
2019-02-15 07:30:22,764 INFO c.AzureBlobStorage: 777-7777-7777-777 - Blob name - ets-containerfor-3e93f9e6-f427-48e1-b37b-994d196e1121
2019-02-15 07:30:22,764 INFO c.AzureStorageAccessData: 777-7777-7777-777 - Get storage access data for storage - ets-containerfor-3e93f9e6-f427-48e1-b37b-994d196e1121, type - azureblob
2019-02-15 07:30:23,639 INFO c.PageArrayBlob: 777-7777-7777-777 - Creating the blob with the name as - a0287877-9672-4573-95cb-a8709dc7ac6d/rollingids/instance.dat
2019-02-15 07:30:23,670 INFO c.PageArrayBlob: 777-7777-7777-777 - Blob created
2019-02-15 07:30:23,685 INFO c.AzureBlobStorage: 777-7777-7777-777 - AzureBlobStorage : ContainerPrefix: ets-containerfor-
2019-02-15 07:30:23,685 INFO c.AzureBlobStorage: 777-7777-7777-777 - ets-containerfor-3e93f9e6-f427-48e1-b37b-994d196e1121 is a valid container name
2019-02-15 07:30:23,685 INFO c.AzureBlobStorage: 777-7777-7777-777 - Blob name - ets-containerfor-3e93f9e6-f427-48e1-b37b-994d196e1121
2019-02-15 07:30:23,685 INFO c.AzureStorageAccessData: 777-7777-7777-777 - Get storage access data for storage - ets-containerfor-3e93f9e6-f427-48e1-b37b-994d196e1121, type - azureblob
2019-02-15 07:30:23,701 INFO c.BlockArrayBlob: 777-7777-7777-777 - BlobName: a0287877-9672-4573-95cb-a8709dc7ac6d/0/rawsamples.dat, ContainerName: ets-containerfor-3e93f9e6-f427-48e1-b37b-994d196e1121
2019-02-15 07:30:23,732 INFO o.a.j.JMeter: Running test (1550215823732)
2019-02-15 07:30:23,810 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : Sanity scenarios
2019-02-15 07:30:23,810 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group Sanity scenarios.
2019-02-15 07:30:23,810 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error
2019-02-15 07:30:23,810 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 perThread=1000.0 delayedStart=false
2019-02-15 07:30:23,905 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2019-02-15 07:30:23,905 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started
2019-02-15 07:30:23,920 INFO o.a.j.s.SampleResult: Note: Sample TimeStamps are START times
2019-02-15 07:30:23,920 INFO o.a.j.s.SampleResult: sampleresult.default.encoding is set to ISO-8859-1
2019-02-15 07:30:23,920 INFO o.a.j.s.SampleResult: sampleresult.useNanoTime=true
2019-02-15 07:30:23,920 INFO o.a.j.s.SampleResult: sampleresult.nanoThreadSleep=5000
2019-02-15 07:30:23,920 INFO o.a.j.t.JMeterThread: Thread started: Sanity scenarios 1-1
2019-02-15 07:30:23,920 INFO o.a.j.s.FileServer: Stored: 1UserTestDocument.csv
2019-02-15 07:30:23,920 ERROR o.a.j.t.JMeterThread: Test failed!
java.lang.IllegalArgumentException: Could not read file header line for file 1UserTestDocument.csv
at org.apache.jmeter.services.FileServer.reserveFile(FileServer.java:289) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.config.CSVDataSet.iterationStart(CSVDataSet.java:181) ~[ApacheJMeter_components.jar:3.2 r1790748]
at org.apache.jmeter.control.GenericController.fireIterationStart(GenericController.java:393) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.control.GenericController.fireIterEvents(GenericController.java:385) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.control.GenericController.next(GenericController.java:158) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.control.TransactionController.nextWithoutTransactionSampler(TransactionController.java:206) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.control.TransactionController.next(TransactionController.java:136) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:219) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.control.GenericController.next(GenericController.java:173) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.control.LoopController.next(LoopController.java:123) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.threads.AbstractThreadGroup.next(AbstractThreadGroup.java:87) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:252) [ApacheJMeter_core.jar:3.2 r1790748]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_172]
Caused by: java.lang.IllegalArgumentException: File 1UserTestDocument.csv must exist and be readable
at org.apache.jmeter.services.FileServer.createBufferedReader(FileServer.java:430) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.services.FileServer.readLine(FileServer.java:346) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.services.FileServer.readLine(FileServer.java:330) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.services.FileServer.reserveFile(FileServer.java:278) ~[ApacheJMeter_core.jar:3.2 r1790748]
... 12 more
2019-02-15 07:30:23,920 INFO o.a.j.t.JMeterThread: Thread finished: Sanity scenarios 1-1
2019-02-15 07:30:23,920 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test
2019-02-15 07:30:23,920 INFO j.CLTListenerPlugin: a0287877-9672-4573-95cb-a8709dc7ac6d - Test Ended. Next interval to write : 0
2019-02-15 07:30:23,920 INFO j.CLTListenerPlugin: a0287877-9672-4573-95cb-a8709dc7ac6d - Test Ended. Last Interval to write : 0
2019-02-15 07:30:23,920 INFO j.CLTListenerPlugin: a0287877-9672-4573-95cb-a8709dc7ac6d - TestEnded - Writing samples for the interval range : [0 - 0]
2019-02-15 07:30:23,951 INFO c.RollingIdManager: a0287877-9672-4573-95cb-a8709dc7ac6d - No new data in the blob. CurrentReadOffset - 0
2019-02-15 07:30:23,967 INFO c.PageArrayBlob: 777-7777-7777-777 - PageBlob - lease acquired
2019-02-15 07:30:23,982 INFO c.RollingIdManager: a0287877-9672-4573-95cb-a8709dc7ac6d - No new data in the blob. CurrentReadOffset - 0
2019-02-15 07:30:24,045 INFO c.PageArrayBlob: 777-7777-7777-777 - PageBlob: Length- 1140
2019-02-15 07:30:24,060 INFO r.RawSampleWriter: a0287877-9672-4573-95cb-a8709dc7ac6d - WriteSamples - Writing Samples into raw samples store for Interval 0. Samples Count = 17
2019-02-15 07:30:24,060 INFO c.BlockArrayBlob: 777-7777-7777-777 - In WriteBlock- ets-containerfor-3e93f9e6-f427-48e1-b37b-994d196e1121
2019-02-15 07:30:24,060 INFO c.BlockArrayBlob: 777-7777-7777-777 - Interval - 0, samples bytes size - 476, block name - AAAAAA==
2019-02-15 07:30:24,076 INFO c.BlockArrayBlob: 777-7777-7777-777 - WriteBlock - Case 1
2019-02-15 07:30:24,123 INFO c.BlockArrayBlob: 777-7777-7777-777 - In WriteBlock
2019-02-15 07:30:24,123 INFO c.BlockArrayBlob: 777-7777-7777-777 - Block Number: 0, BlockItemName: AAAAAA==, BlockItemLength: 476
2019-02-15 07:30:24,139 INFO r.LoadTestCounterWriter: a0287877-9672-4573-95cb-a8709dc7ac6d - SetFirstIntervalTime - Start Time : 2/15/19 7:30 AM
2019-02-15 07:30:24,139 INFO L.LoadTestMessageWriter: 777-7777-7777-777 - No error messages found modified in the interval: 0
2019-02-15 07:30:24,155 INFO r.LoadTestCounterWriter: a0287877-9672-4573-95cb-a8709dc7ac6d - SetLastIntervalTime - End Time : 2/15/19 7:30 AM
2019-02-15 07:30:24,185 INFO r.LoadTestCounterWriter: a0287877-9672-4573-95cb-a8709dc7ac6d - LoadTestCounterWriter.Close : Close has been invoked
2019-02-15 07:30:24,185 INFO o.a.j.r.Summariser: summary = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
我认为找不到支持的文件。有人知道如何设置吗?它已经存在于我的工作目录中。