<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>StresStimulus Forum - SUPPORT QUESTIONS - Write Extractor value into CSV/Txt file using C# - Messages</title>
<link>https://www.stresstimulus.com/forum/write-extractor-value-into-csvtxt-file-using-c-791</link>
<description>StresStimulus Forum - SUPPORT QUESTIONS - Write Extractor value into CSV/Txt file using C# - Messages</description>
<language>en-us</language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>Jitbit AspNetForum</generator>
<pubDate>Mon, 24 Feb 2020 10:30:06 GMT</pubDate>
<lastBuildDate>Mon, 24 Feb 2020 10:30:06 GMT</lastBuildDate>
<item>
<link>https://www.stresstimulus.com/forum/write-extractor-value-into-csvtxt-file-using-c-791</link>
<title>Message from George @StresStimulus</title>
<description><![CDATA[StresStimulus handles Url encoding automatically. In most situations, script playback errors are caused by various issues unrelated to Url encoding. For that reason, to protect end-users from manually selecting incorrect Url encoding options, they are not exposed in the UI. For customers, we resolve any scripting issues on screen sharing sessions. <br/><br/>If you are evaluating StresStimulus and getting playback errors and interested in a screen sharing support session, email us at <a href="mailto:support@stresstimulus.com" target="_blank" rel="nofollow">support@stresstimulus.com</a>, and we will assist you.]]></description>
<pubDate>Mon, 24 Feb 2020 10:30:06 GMT</pubDate>
</item>
<item>
<link>https://www.stresstimulus.com/forum/write-extractor-value-into-csvtxt-file-using-c-791</link>
<title>Message from PreetiTester</title>
<description><![CDATA[I have one more question - How do I disable URL encoding for hard coded Request Parameters being sent along with request ?  I can see from Stress stimulus docs that we can disable URL Encoding for Extractors but how to do it for Hard Coded Request Parameters ? I Notice <br/>In Recorded request it is - http://<br/>In replayed request it becomes - http%3A%2F%2F]]></description>
<pubDate>Mon, 24 Feb 2020 00:27:59 GMT</pubDate>
</item>
<item>
<link>https://www.stresstimulus.com/forum/write-extractor-value-into-csvtxt-file-using-c-791</link>
<title>Message from PreetiTester</title>
<description><![CDATA[Thanks for the reply @George. So i will have to setup Visual studio and .NET Framework for using external components ? Sure will give it a try and keep you posted for success/failure/issues .]]></description>
<pubDate>Mon, 24 Feb 2020 00:05:07 GMT</pubDate>
</item>
<item>
<link>https://www.stresstimulus.com/forum/write-extractor-value-into-csvtxt-file-using-c-791</link>
<title>Message from George @StresStimulus</title>
<description><![CDATA[In order to achieve your requirements, you would need to create an external component that is described <a href="http://support.stresstimulus.com/display/doc51/Creating+External+Components" target="_blank" rel="nofollow">http://support.stresstimulus.com/display/doc51/Creating+External+Components</a><br/><br/><br/>You would need to implement the OnAfterIteration method. See the sample C# code below.<br/><br/><br/>public class MyExternalComponent : IExternalComponent<br/>{<br/>	Static object FileWriteLock = new object();<br/>	public void OnAfterIteration(RuntimeVU vu)<br/>	{<br/>	//--- Get the custom extractor format you want to write to file. Use ExtractorRuntime to access extractor values. <a href="http://support.stresstimulus.com/display/doc51/ExtractorRuntime" target="_blank" rel="nofollow">http://support.stresstimulus.com/display/doc51/ExtractorRuntime</a><br/>	StringBuilder sb = new StringBuilder();<br/>	sb.AppendLine(vu.ExtractorRuntime.GetExtractorValue(“extrator1”))<br/>	sb.AppendLine(vu.ExtractorRuntime.GetExtractorValue(“extrator2”))<br/><br/>	//--- Write to file. Remember to use file locks <br/>	lock(FileWriteLock)<br/>{<br/>using (StreamWriter outputFile = new StreamWriter(“my_file_path.txt”)) // replace file path with desired name<br/>        {<br/>                outputFile.Write(sb.ToString());<br/>        }<br/>}<br/>}<br/>}]]></description>
<pubDate>Fri, 21 Feb 2020 11:35:22 GMT</pubDate>
</item>
<item>
<link>https://www.stresstimulus.com/forum/write-extractor-value-into-csvtxt-file-using-c-791</link>
<title>Message from PreetiTester</title>
<description><![CDATA[Hi Folks , <br/><br/>Need help on how to <b>write </b>an extractor value into CSV or txt file using C# Code. I don't want to use "Advanced Option" of output text file as the file name generated is based on timestamp. I want file name to be fixed.I will be using this .txt file as input in another Stress Stimulus script.<br/>Also how to ensure that this file is written at End Of iteration for each user ?]]></description>
<pubDate>Wed, 19 Feb 2020 01:49:09 GMT</pubDate>
</item>
</channel>
</rss>
