How can I capture a user defined variable in my post request. The variable it’s a random number generator. ${OrderID}. I want it to write the random number to a csv file
Hi ,I have one query , I want capture list of values and need to print in csv file for that I will give match count -1 getting all the values in debug sampler...when I tried to print using beanshell post processor it'printing null ...if I give match count 1,2,0..it is printing the values....can you help me hw to print all the list of values in csv file?...
first thank you it was very useful for me second, i want to ask question please : if i have more than output it appears in same cell i want to separate them in separated rows ) example output like 149714981499 in same cell i want to be like this 1497 1498 1499 in separate rows what can i do ?
Hi Nayera, You can go through my other videos related to beanshell and your problem should be fixed. If still face any challenge please comment i will try to help you. For more videos please subscribe my channel.
Hi Poley, we can save data in .xls file but not sure about .xlsx. For more details you can subscribe to my channel to get notification when i will post video around it. Very soon i am planning for the same
Hi Swarnendu, Very soon i will publish more videos containing answer of your doubts. You can subscribe my cahnnel to get notification for those videos.
you can get new line with this code, out.write(System.getProperty("line.separator)) write this code at the end of your content, code will be execute with the new line with every loop
I used the below code but it is not creating the file for me. import java.io.file; import org.apache.jmeter.services.Fileserver; import java.io.FileWriter import java.io.PrintWriter; import java.util.Arrays; import java.io.Writer; File file = new File("D:/Results/Output.xlsx"); FileWriter fstream = new FileWriter(file,true); BufferedWriter out = new BufferedWriter(fstream); out.write("test1"); out.write("test2"); out.close(); fstream.close();
Can we get such more intresting videos it was awesome !
Its working ...thanks for the details
Great
How can I capture a user defined variable in my post request. The variable it’s a random number generator. ${OrderID}. I want it to write the random number to a csv file
Thanks for this video, it was really helpful.
Glad to hear that!
Thanks for the video.This helps
Glad it helped
Hi ,I have one query , I want capture list of values and need to print in csv file for that I will give match count -1 getting all the values in debug sampler...when I tried to print using beanshell post processor it'printing null ...if I give match count 1,2,0..it is printing the values....can you help me hw to print all the list of values in csv file?...
Hi, Awesome content and it worked great. Thank You !!!
Great to hear!
After writing the same code also csv file is not getting generated. Any idea??
Hi Sir,
I have one reference number generating dynamically which I need in Excel. Can you pls help me with the code.
How to write response of specific valu in specified column of excel
first thank you it was very useful for me
second, i want to ask question please : if i have more than output it appears in same cell i want to separate them in separated rows )
example
output like 149714981499 in same cell
i want to be like this
1497
1498
1499
in separate rows what can i do ?
Hi Nayera, You can go through my other videos related to beanshell and your problem should be fixed. If still face any challenge please comment i will try to help you. For more videos please subscribe my channel.
Can we save data in xlsx file?
Hi Poley, we can save data in .xls file but not sure about .xlsx. For more details you can subscribe to my channel to get notification when i will post video around it. Very soon i am planning for the same
Can you please let me know how to make a new line for each data to save ?
is not working.
Also how to concatenate a value with additional values?
Hi Swarnendu, Very soon i will publish more videos containing answer of your doubts. You can subscribe my cahnnel to get notification for those videos.
you can get new line with this code,
out.write(System.getProperty("line.separator))
write this code at the end of your content, code will be execute with the new line with every loop
how to add two variables side by side in the same line on next location in an CSV file
Very soon I will share video with required scenario handled.
I used the below code but it is not creating the file for me.
import java.io.file;
import org.apache.jmeter.services.Fileserver;
import java.io.FileWriter
import java.io.PrintWriter;
import java.util.Arrays;
import java.io.Writer;
File file = new File("D:/Results/Output.xlsx");
FileWriter fstream = new FileWriter(file,true);
BufferedWriter out = new BufferedWriter(fstream);
out.write("test1");
out.write("test2");
out.close();
fstream.close();