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
In questa pagina del sito puoi guardare il video online JMeter tutorial 21 - BeanShell Script Part - 2 | Write data to CSV file | BeanShell PostProcessor della durata di ore minuti seconda in buona qualità , che l'utente ha caricato QA Automation Lab 30 luglio 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 34,714 volte e gli è piaciuto 332 spettatori. Buona visione!