JMeter tutorial 21 - BeanShell Script Part - 2 | Write data to CSV file | BeanShell PostProcessor

Publicado em: 30 Julho 2019
no canal de: QA Automation Lab
34,714
332

This is the twenty-first video of JMeter Tutorial series which covers How to write data to CSV file using BeanShell script
Learning:
BeanShell Script to write data to CSV file with if-else condition:

import java.io.*;
File f=new File("D:\\jmeterProject\\testResult.csv");
FileWriter fw=new FileWriter(f);
BufferedWriter bw=new BufferedWriter(fw);
var rc = prev.getResponseCode();
if(rc.equals("200")){
bw.write("test is passed");
}
else{
bw.write("test is failed");
}
bw.close();
fw.close();

BeanShell Introduction -    • JMeter tutorial 20-BeanShell Script Part-1...  
==================================================================
Git and GitHub Tutorial Playlist:
   • Git and GitHub  Tutorial  

Automation Anywhere Tutorial Playlist:
   • Automation Anywhere A11 Tutorial  

Subscribe for more tutorials -    / @qaautomationlab1  


Nesta página do site você pode assistir ao vídeo on-line JMeter tutorial 21 - BeanShell Script Part - 2 | Write data to CSV file | BeanShell PostProcessor duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário QA Automation Lab 30 Julho 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 34,714 vezes e gostou 332 espectadores. Boa visualização!