<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://performiq.com/kb/index.php?action=history&amp;feed=atom&amp;title=Reformat_LoadRunner_Scripts</id>
	<title>Reformat LoadRunner Scripts - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://performiq.com/kb/index.php?action=history&amp;feed=atom&amp;title=Reformat_LoadRunner_Scripts"/>
	<link rel="alternate" type="text/html" href="https://performiq.com/kb/index.php?title=Reformat_LoadRunner_Scripts&amp;action=history"/>
	<updated>2026-05-18T20:46:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://performiq.com/kb/index.php?title=Reformat_LoadRunner_Scripts&amp;diff=4298&amp;oldid=prev</id>
		<title>PeterHarding at 06:33, 24 September 2014</title>
		<link rel="alternate" type="text/html" href="https://performiq.com/kb/index.php?title=Reformat_LoadRunner_Scripts&amp;diff=4298&amp;oldid=prev"/>
		<updated>2014-09-24T06:33:41Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:33, 24 September 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#!/usr/bin/env python&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#!/usr/bin/env python&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#  $Id:$&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#--------------------------------------------------------------------------&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#--------------------------------------------------------------------------&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>PeterHarding</name></author>
	</entry>
	<entry>
		<id>https://performiq.com/kb/index.php?title=Reformat_LoadRunner_Scripts&amp;diff=3048&amp;oldid=prev</id>
		<title>PeterHarding at 22:08, 2 April 2009</title>
		<link rel="alternate" type="text/html" href="https://performiq.com/kb/index.php?title=Reformat_LoadRunner_Scripts&amp;diff=3048&amp;oldid=prev"/>
		<updated>2009-04-02T22:08:28Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:08, 3 April 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l77&quot;&gt;Line 77:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          line = line.replace(&amp;#039;test403.xxx.com.au&amp;#039;, &amp;#039;{System}&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          line = line.replace(&amp;#039;test403.xxx.com.au&amp;#039;, &amp;#039;{System}&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       if re.search(&amp;#039;web_reg_find\(&amp;quot;Text=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;iCMS&lt;/del&gt;&amp;#039;, line):&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       if re.search(&amp;#039;web_reg_find\(&amp;quot;Text=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;app&lt;/ins&gt;&amp;#039;, line):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          ofd.write(separator)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          ofd.write(separator)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>PeterHarding</name></author>
	</entry>
	<entry>
		<id>https://performiq.com/kb/index.php?title=Reformat_LoadRunner_Scripts&amp;diff=1869&amp;oldid=prev</id>
		<title>PeterHarding at 23:37, 15 April 2008</title>
		<link rel="alternate" type="text/html" href="https://performiq.com/kb/index.php?title=Reformat_LoadRunner_Scripts&amp;diff=1869&amp;oldid=prev"/>
		<updated>2008-04-15T23:37:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:37, 16 April 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l74&quot;&gt;Line 74:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 74:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       line = line.replace(&amp;#039;\t&amp;#039;, &amp;#039;    &amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       line = line.replace(&amp;#039;\t&amp;#039;, &amp;#039;    &amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       if re.search(&amp;#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;test403d&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;auspost&lt;/del&gt;.com.au&amp;#039;, line):&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       if re.search(&amp;#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;test403&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;xxx&lt;/ins&gt;.com.au&amp;#039;, line):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          line = line.replace(&amp;#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;test403d&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;auspost&lt;/del&gt;.com.au&amp;#039;, &amp;#039;{System}&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          line = line.replace(&amp;#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;test403&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;xxx&lt;/ins&gt;.com.au&amp;#039;, &amp;#039;{System}&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       if re.search(&amp;#039;web_reg_find\(&amp;quot;Text=iCMS&amp;#039;, line):&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       if re.search(&amp;#039;web_reg_find\(&amp;quot;Text=iCMS&amp;#039;, line):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l95&quot;&gt;Line 95:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 95:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             continue&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             continue&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       #----- Cull &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;auspost &lt;/del&gt;logo request call ---------------------------------------&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       #----- Cull logo request call &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-------&lt;/ins&gt;---------------------------------------&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       if strip_logo:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       if strip_logo:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          if re.search(r&amp;#039;web_url\(&amp;quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;auspost_logo&lt;/del&gt;.gif&amp;#039;, line):&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          if re.search(r&amp;#039;web_url\(&amp;quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;xxx_logo&lt;/ins&gt;.gif&amp;#039;, line):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             in_logo = True&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             in_logo = True&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             continue&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             continue&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>PeterHarding</name></author>
	</entry>
	<entry>
		<id>https://performiq.com/kb/index.php?title=Reformat_LoadRunner_Scripts&amp;diff=1868&amp;oldid=prev</id>
		<title>PeterHarding: New page: =Example=  The following script is an early draft of a work in progress to reformat LoadRunner scripts to improve their readability.  &lt;pre&gt; #!/usr/bin/env python # #  $Id:$ # #------------...</title>
		<link rel="alternate" type="text/html" href="https://performiq.com/kb/index.php?title=Reformat_LoadRunner_Scripts&amp;diff=1868&amp;oldid=prev"/>
		<updated>2008-04-15T23:36:18Z</updated>

		<summary type="html">&lt;p&gt;New page: =Example=  The following script is an early draft of a work in progress to reformat LoadRunner scripts to improve their readability.  &amp;lt;pre&amp;gt; #!/usr/bin/env python # #  $Id:$ # #------------...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Example=&lt;br /&gt;
&lt;br /&gt;
The following script is an early draft of a work in progress to reformat LoadRunner scripts to improve their readability.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/usr/bin/env python&lt;br /&gt;
#&lt;br /&gt;
#  $Id:$&lt;br /&gt;
#&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
import re&lt;br /&gt;
import os&lt;br /&gt;
import sys&lt;br /&gt;
import types&lt;br /&gt;
import getopt&lt;br /&gt;
import pprint&lt;br /&gt;
import datetime&lt;br /&gt;
&lt;br /&gt;
from string import join, split    &lt;br /&gt;
&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
Clean up LoadRuner script data blocks&lt;br /&gt;
&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
__version__ = &amp;#039;1.0.0&amp;#039;&lt;br /&gt;
&lt;br /&gt;
debug_flg   = False&lt;br /&gt;
verbose_flg = False&lt;br /&gt;
&lt;br /&gt;
strip_logo  = True&lt;br /&gt;
strip_css   = True&lt;br /&gt;
add_wrsp    = True&lt;br /&gt;
&lt;br /&gt;
tmpfile     = &amp;#039;xxxxx&amp;#039;&lt;br /&gt;
&lt;br /&gt;
separator   = &amp;quot;&amp;quot;&amp;quot;\&lt;br /&gt;
   //---------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
save_param_pageID = &amp;quot;&amp;quot;&amp;quot;\&lt;br /&gt;
   web_reg_save_param(&amp;quot;pageID&amp;quot;,&lt;br /&gt;
                      &amp;quot;LB=input type=\\&amp;quot;hidden\\&amp;quot; name=\\&amp;quot;pageID\\&amp;quot; value=\\&amp;quot;&amp;quot;,&lt;br /&gt;
                      &amp;quot;RB=\\&amp;quot;&amp;quot;,&lt;br /&gt;
                      LAST);&lt;br /&gt;
&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
def process(filename):&lt;br /&gt;
   in_logo     = False&lt;br /&gt;
   in_ITEMDATA = False&lt;br /&gt;
   in_Resource = False&lt;br /&gt;
&lt;br /&gt;
   spacer      = None&lt;br /&gt;
   block       = None&lt;br /&gt;
   l_name      = 0&lt;br /&gt;
   l_value     = 0&lt;br /&gt;
   submit_cnt  = 0&lt;br /&gt;
&lt;br /&gt;
   print filename&lt;br /&gt;
&lt;br /&gt;
   ifd = open(filename, &amp;#039;r&amp;#039;)&lt;br /&gt;
   ofd = open(tmpfile, &amp;#039;w&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
   p   = re.compile(&amp;#039;(  *)(&amp;quot;Name=[^,]*&amp;quot;) *, *(&amp;quot;Value=[^,]*&amp;quot;) *, *ENDITEM,(.*)&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
   for line in ifd.readlines():&lt;br /&gt;
      line = line[:-1]&lt;br /&gt;
      line = line.replace(&amp;#039;\t&amp;#039;, &amp;#039;    &amp;#039;)&lt;br /&gt;
&lt;br /&gt;
      if re.search(&amp;#039;test403d.auspost.com.au&amp;#039;, line):&lt;br /&gt;
         line = line.replace(&amp;#039;test403d.auspost.com.au&amp;#039;, &amp;#039;{System}&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
      if re.search(&amp;#039;web_reg_find\(&amp;quot;Text=iCMS&amp;#039;, line):&lt;br /&gt;
         ofd.write(separator)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
      #----- Cull CSS request calls -----------------------------------------------&lt;br /&gt;
&lt;br /&gt;
      if strip_css:&lt;br /&gt;
         if re.search(&amp;#039;web_concurrent_start&amp;#039;, line):&lt;br /&gt;
            in_Resource = True&lt;br /&gt;
            continue&lt;br /&gt;
&lt;br /&gt;
         if re.search(&amp;#039;web_concurrent_end&amp;#039;, line):&lt;br /&gt;
            in_Resource = False&lt;br /&gt;
            continue&lt;br /&gt;
&lt;br /&gt;
         if in_Resource:&lt;br /&gt;
            continue&lt;br /&gt;
&lt;br /&gt;
      #----- Cull auspost logo request call ---------------------------------------&lt;br /&gt;
&lt;br /&gt;
      if strip_logo:&lt;br /&gt;
         if re.search(r&amp;#039;web_url\(&amp;quot;auspost_logo.gif&amp;#039;, line):&lt;br /&gt;
            in_logo = True&lt;br /&gt;
            continue&lt;br /&gt;
&lt;br /&gt;
         if in_logo and re.search(&amp;#039;LAST\)&amp;#039;, line):&lt;br /&gt;
            in_logo = False&lt;br /&gt;
            continue&lt;br /&gt;
&lt;br /&gt;
         if in_logo:&lt;br /&gt;
            continue&lt;br /&gt;
&lt;br /&gt;
      #----- Drop in web_reg_save_param(pageID) block -----------------------------&lt;br /&gt;
&lt;br /&gt;
      if add_wrsp:&lt;br /&gt;
         if re.search(&amp;#039;web_submit_data\(&amp;quot;&amp;#039;, line):&lt;br /&gt;
            submit_cnt += 1&lt;br /&gt;
            if submit_cnt &amp;gt; 2:&lt;br /&gt;
               ofd.write(&amp;quot;%s\n&amp;quot; % save_param_pageID)&lt;br /&gt;
            ofd.write(&amp;quot;%s\n&amp;quot; % line)&lt;br /&gt;
            continue&lt;br /&gt;
&lt;br /&gt;
      #----- Reformat ITEMDATA block -------------------------------------------&lt;br /&gt;
&lt;br /&gt;
      if re.search(&amp;#039;ITEMDATA&amp;#039;, line):&lt;br /&gt;
         block   = []&lt;br /&gt;
         l_name  = 0&lt;br /&gt;
         l_value = 0&lt;br /&gt;
         spacer  = &amp;#039;&amp;#039;&lt;br /&gt;
         if debug_flg: print &amp;#039;ITEMDATA Start&amp;#039;&lt;br /&gt;
         in_ITEMDATA = True&lt;br /&gt;
         ofd.write(&amp;quot;%s\n&amp;quot; % line)&lt;br /&gt;
         continue&lt;br /&gt;
&lt;br /&gt;
      if in_ITEMDATA and re.search(&amp;#039;LAST&amp;#039;, line):&lt;br /&gt;
         if debug_flg: print &amp;#039;ITEMDATA End =========================================&amp;#039;&lt;br /&gt;
         in_ITEMDATA = False&lt;br /&gt;
         if debug_flg: print &amp;#039;len block = %d&amp;#039; % len(block)&lt;br /&gt;
         block_txt = &amp;#039;&amp;#039;&lt;br /&gt;
         for b in block:&lt;br /&gt;
            line = &amp;quot;%s%s,%s%s,%sENDITEM,%s\n&amp;quot; % (&lt;br /&gt;
                spacer,&lt;br /&gt;
                b[1],&lt;br /&gt;
                (&amp;#039; &amp;#039;*(l_name - len(b[1]) + 2)),&lt;br /&gt;
                b[2],&lt;br /&gt;
                (&amp;#039; &amp;#039;*(l_value - len(b[2]) + 2)),&lt;br /&gt;
                b[3])&lt;br /&gt;
            block_txt += line&lt;br /&gt;
         ofd.write(&amp;quot;%s&amp;quot; % block_txt)&lt;br /&gt;
         ofd.write(&amp;quot;%sLAST);\n&amp;quot; % spacer)&lt;br /&gt;
         if debug_flg: print &amp;#039;ITEMDATA End =========================================&amp;#039;&lt;br /&gt;
         spacer = None&lt;br /&gt;
         continue&lt;br /&gt;
&lt;br /&gt;
      if in_ITEMDATA:&lt;br /&gt;
         if debug_flg: print line&lt;br /&gt;
         m = p.search(line)&lt;br /&gt;
         if m:&lt;br /&gt;
            if debug_flg: print &amp;#039;[%s][%s][%s][%s]&amp;#039; % (m.group(1), m.group(2), m.group(3), m.group(4))&lt;br /&gt;
&lt;br /&gt;
            if not spacer:&lt;br /&gt;
               spacer = m.group(1)&lt;br /&gt;
            name   = m.group(2)&lt;br /&gt;
            value  = m.group(3)&lt;br /&gt;
            extra  = m.group(4)&lt;br /&gt;
&lt;br /&gt;
            if (submit_cnt &amp;gt; 3) and re.search(&amp;#039;=pageID&amp;#039;, name):&lt;br /&gt;
               value = &amp;#039;&amp;quot;Value={pageID}&amp;quot;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
            l = len(name)&lt;br /&gt;
            if l &amp;gt; l_name:&lt;br /&gt;
               l_name = l&lt;br /&gt;
&lt;br /&gt;
            l = len(value)&lt;br /&gt;
            if l &amp;gt; l_value:&lt;br /&gt;
               l_value = l&lt;br /&gt;
&lt;br /&gt;
            block.append((spacer, name, value, extra))&lt;br /&gt;
            continue&lt;br /&gt;
&lt;br /&gt;
      ofd.write(&amp;quot;%s\n&amp;quot; % line)&lt;br /&gt;
&lt;br /&gt;
   ifd.close()&lt;br /&gt;
   ofd.close()&lt;br /&gt;
&lt;br /&gt;
   stamp = datetime.datetime.now().strftime(&amp;quot;%Y%m%d_%H%M%S&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
   os.rename(filename, &amp;#039;bak/&amp;#039; + filename + &amp;#039;__&amp;#039; + stamp)&lt;br /&gt;
   os.rename(tmpfile, filename)&lt;br /&gt;
&lt;br /&gt;
#----- Main test ----------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
def main(argv):&lt;br /&gt;
   global pp&lt;br /&gt;
&lt;br /&gt;
   print argv&lt;br /&gt;
&lt;br /&gt;
   if not os.path.exists(&amp;#039;bak&amp;#039;):&lt;br /&gt;
      os.mkdir(&amp;#039;bak&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
   for script in argv:&lt;br /&gt;
      process(script)&lt;br /&gt;
&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
if __name__ == &amp;quot;__main__&amp;quot;:&lt;br /&gt;
   main(sys.argv[1:])&lt;br /&gt;
&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:LoadRunner]]&lt;br /&gt;
[[Category:Python]]&lt;/div&gt;</summary>
		<author><name>PeterHarding</name></author>
	</entry>
</feed>