Read xml huge payload from file

I have 3 end points and their payload xml size is 300 kb. I created one script for all end points and it is running in local as expected. But it is taking 2 to 3 minutes to load.

To avoid this we tried k6-operator. Pods are giving below error message
time=“2022-06-20T18:16:35Z” level=warning msg=“The source for file:///test/TestScript.js needs to go through babel but is over 256000 bytes. For performance reasons source map support will be disabled for this particular file.”

Can you please let me know, is there any workaround? Do you have any examples to read xml from file using k6? So that I can put the payload xml in a separate files.

I run for on end point and i got the below error after 30 seconds
time=“2022-06-20T21:26:10Z” level=warning msg=“Request Failed” error=“Post “https://URL”: dial: i/o timeout”

Below are the results
checks…: 0.00% ✓ 0 ✗ 1
Mon, Jun 20 2022 5:26:10 pm data_received…: 0 B 0 B/s
Mon, Jun 20 2022 5:26:10 pm data_sent…: 0 B 0 B/s
Mon, Jun 20 2022 5:26:10 pm ✓ dropped_iterations…: 0 0/s
Mon, Jun 20 2022 5:26:10 pm group_duration…: avg=30.05s min=30.05s med=30.05s max=30.05s p(90)=30.05s p(95)=30.05s
Mon, Jun 20 2022 5:26:10 pm http_req_blocked…: avg=0s min=0s med=0s max=0s p(90)=0s p(95)=0s
Mon, Jun 20 2022 5:26:10 pm http_req_connecting…: avg=0s min=0s med=0s max=0s p(90)=0s p(95)=0s
Mon, Jun 20 2022 5:26:10 pm ✓ http_req_duration…: avg=0s min=0s med=0s max=0s p(90)=0s p(95)=0s
Mon, Jun 20 2022 5:26:10 pm http_req_failed…: 100.00% ✓ 1 ✗ 0
Mon, Jun 20 2022 5:26:10 pm http_req_receiving…: avg=0s min=0s med=0s max=0s p(90)=0s p(95)=0s
Mon, Jun 20 2022 5:26:10 pm http_req_sending…: avg=0s min=0s med=0s max=0s p(90)=0s p(95)=0s
Mon, Jun 20 2022 5:26:10 pm http_req_tls_handshaking…: avg=0s min=0s med=0s max=0s p(90)=0s p(95)=0s
Mon, Jun 20 2022 5:26:10 pm http_req_waiting…: avg=0s min=0s med=0s max=0s p(90)=0s p(95)=0s
Mon, Jun 20 2022 5:26:10 pm ✗ http_reqs…: 1 0.033269/s
Mon, Jun 20 2022 5:26:10 pm iteration_duration…: avg=10.01s min=47.92µs med=111.16µs max=30.05s p(90)=24.04s p(95)=27.04s
Mon, Jun 20 2022 5:26:10 pm iterations…: 1 0.033269/s
Mon, Jun 20 2022 5:26:10 pm my_errors…: 100.00% ✓ 1 ✗ 0
Mon, Jun 20 2022 5:26:10 pm vus…: 6 min=0 max=6
Mon, Jun 20 2022 5:26:10 pm vus_max…: 6 min=6 max=6

Hi @ppyneni !

Can you please let me know, is there any workaround? Do you have any examples to read xml from file using k6? So that I can put the payload xml in a separate files.

Are you modifying somehow XML before using it as a payload? If not could you try Data Uploads answer?

I run for on end point and i got the below error after 30 seconds
time=“2022-06-20T21:26:10Z” level=warning msg=“Request Failed” error=“Post “https://URL”: dial: i/o timeout”

Is the hostname that you’re trying to request reachable? :thinking:

Let me know if that help,
Cheers