Performance Testing made easy

Interesting articles that improve the performance of performance testing...

Print Date and Time parameters to a text/csv file in Jmeter

 Below is code to print Date and Time parameters to a text/csv file in Jmeter


String Date = vars.get("${__time(MM/dd/yyyy,currentDate)}");

String Time = vars.get("${__time(hh:mm:ss,currentTime)}");

String Date = vars.get("currentDate");

String Time = vars.get("currentTime");

log.info(Date);

log.info(Time);

f = new FileOutputStream ("C:/[FilePath]/Timestamp.txt",true);

p = new PrintStream(f);

this.interpreter.setOut(p);

print(Date+","+Time);

f.close();

at September 23, 2021 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Automated VB script to check the web application status and send mail to stakeholders when app is down

Most Viewed

  • web_concurrent_start & web_concurrent_end
  • lr_read_file Loadrunner Function to read the content of a text file
  • Standard deviation and its importance in performance testing
  • C Program to write loadrunner parameter output to text file
  • SaveOffset attribute in web_reg_save_param
  • Loadrunner scripting for Rest API services - web_custom_request
  • Pacing Calculation in Loadrunner - Performance Testing
  • what is GC Suspension Time or GC Pause Time?
  • Parameterization in TruClient Protocol Loadrunner - JavaScript Based (Method 2 - LR.getParam)
  • Parameterize the object xpath in TruClient Protocol Loadrunner - JavaScript Based

Search

  • Home

Total Pageviews

Performance tester who loves to learn, explore and try new things in my job.

Vinoth Srinivasan
View my complete profile

Report Abuse

List of topics

  • ►  2017 (15)
    • ►  December 2017 (15)
  • ►  2018 (35)
    • ►  January 2018 (1)
    • ►  March 2018 (2)
    • ►  April 2018 (1)
    • ►  May 2018 (4)
    • ►  June 2018 (4)
    • ►  July 2018 (3)
    • ►  August 2018 (6)
    • ►  September 2018 (2)
    • ►  October 2018 (4)
    • ►  November 2018 (4)
    • ►  December 2018 (4)
  • ►  2019 (23)
    • ►  January 2019 (6)
    • ►  February 2019 (4)
    • ►  March 2019 (3)
    • ►  June 2019 (1)
    • ►  July 2019 (4)
    • ►  September 2019 (2)
    • ►  October 2019 (1)
    • ►  November 2019 (2)
  • ►  2020 (4)
    • ►  January 2020 (2)
    • ►  April 2020 (2)
  • ▼  2021 (10)
    • ►  January 2021 (1)
    • ►  March 2021 (1)
    • ►  April 2021 (1)
    • ►  May 2021 (2)
    • ►  July 2021 (3)
    • ►  August 2021 (1)
    • ▼  September 2021 (1)
      • Print Date and Time parameters to a text/csv file ...
  • ►  2022 (3)
    • ►  March 2022 (1)
    • ►  August 2022 (2)
Awesome Inc. theme. Powered by Blogger.