<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.vital-soft.com/index.php?action=history&amp;feed=atom&amp;title=Testing_Macro_Definition_Files</id>
	<title>Testing Macro Definition Files - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.vital-soft.com/index.php?action=history&amp;feed=atom&amp;title=Testing_Macro_Definition_Files"/>
	<link rel="alternate" type="text/html" href="https://wiki.vital-soft.com/index.php?title=Testing_Macro_Definition_Files&amp;action=history"/>
	<updated>2026-11-06T17:14:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.10</generator>
	<entry>
		<id>https://wiki.vital-soft.com/index.php?title=Testing_Macro_Definition_Files&amp;diff=2392&amp;oldid=prev</id>
		<title>&gt;Johno: /* Creating a Test VsrvTcp Profile */</title>
		<link rel="alternate" type="text/html" href="https://wiki.vital-soft.com/index.php?title=Testing_Macro_Definition_Files&amp;diff=2392&amp;oldid=prev"/>
		<updated>2015-09-23T16:27:54Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Creating a Test VsrvTcp Profile&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 16:27, 23 September 2015&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-l42&quot; &gt;Line 42:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 42:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;:Once the test profile exists, edit the test configuration file and change the name of the macro file.&amp;#160; In our example, we are editing the file &amp;#039;&amp;#039;&amp;#039;/ASKPLUS/visimage/vmgrtest&amp;#039;&amp;#039;&amp;#039;.&amp;#160; For example:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;:Once the test profile exists, edit the test configuration file and change the name of the macro file.&amp;#160; In our example, we are editing the file &amp;#039;&amp;#039;&amp;#039;/ASKPLUS/visimage/vmgrtest&amp;#039;&amp;#039;&amp;#039;.&amp;#160; For example:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; 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 class=&quot;diffchange diffchange-inline&quot;&gt;Assign &lt;/del&gt;Macro macro.test;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;Macro&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; /ASKPLUS/visimage/&lt;/ins&gt;macro.test;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>&gt;Johno</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.vital-soft.com/index.php?title=Testing_Macro_Definition_Files&amp;diff=2391&amp;oldid=prev</id>
		<title>&gt;Johno: Created page with &quot;==Testing Macro Definition Files==  Macro testing depends on your environment and on how Visimage and AskPlus have been configured.  ===Creating a Test Macro File===  :Click [...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.vital-soft.com/index.php?title=Testing_Macro_Definition_Files&amp;diff=2391&amp;oldid=prev"/>
		<updated>2015-09-23T16:15:26Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Testing Macro Definition Files==  Macro testing depends on your environment and on how Visimage and AskPlus have been configured.  ===Creating a Test Macro File===  :Click [...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Testing Macro Definition Files==&lt;br /&gt;
&lt;br /&gt;
Macro testing depends on your environment and on how Visimage and AskPlus have been configured.&lt;br /&gt;
&lt;br /&gt;
===Creating a Test Macro File===&lt;br /&gt;
&lt;br /&gt;
:Click [[Installing Macro Definition Files|here]] for instructions for installing a new macro file.&lt;br /&gt;
&lt;br /&gt;
:By default, the load_macros script always creates a file called macro in the current directory.  &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Use the following steps to create a test macro file:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
login askplus&lt;br /&gt;
cd /ASKPLUS/visimage&lt;br /&gt;
# Make a backup of the old macro file and macrodef definition file.&lt;br /&gt;
mv macrodef macrodef.save&lt;br /&gt;
mv macro macro.save&lt;br /&gt;
# Copy the new macrodef file so the new definitions will be used by load_macros&lt;br /&gt;
cp macrodef.samp macrodef&lt;br /&gt;
../load_macros&lt;br /&gt;
# Rename the new macro file and restore the saved files&lt;br /&gt;
mv macro macro.test&lt;br /&gt;
mv macro.save macro&lt;br /&gt;
cp macrodef.save macrodef&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Creating a Test VsrvTcp Profile===&lt;br /&gt;
&lt;br /&gt;
:Most AskPlus jobs get their default environment by reading a configuration file when AskPlus starts.  This environment is specified either by entering a vsrvtcp profilename using the -a parm, or using the -u parm to specify the actual name of the configuration file.  The configuration file contains the names of the databases and files to open as well as the name of the &amp;#039;&amp;#039;compiled&amp;#039;&amp;#039; macro file.&lt;br /&gt;
&lt;br /&gt;
:The easiest way to test existing jobs is to create/modify a test vsrvtcp profile.  The profile will need to reference the test Eloquence instance and a test vmgr configuration file.  The profile will look something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[summit_test]&lt;br /&gt;
  login=botest&lt;br /&gt;
  directory=/var/summit/spectrum/TEST/visimage&lt;br /&gt;
  EQ_DBSERVER=localhost:TEST&lt;br /&gt;
  vmgr=/ASKPLUS/visimage/vmgrtest&lt;br /&gt;
  profile=askplus&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:This is just a sample, the settings in your environment will probably be different.&lt;br /&gt;
&lt;br /&gt;
:Once the test profile exists, edit the test configuration file and change the name of the macro file.  In our example, we are editing the file &amp;#039;&amp;#039;&amp;#039;/ASKPLUS/visimage/vmgrtest&amp;#039;&amp;#039;&amp;#039;.  For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Assign Macro macro.test;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:When the new profile has been created/updated, you can use this profile to test existing AskPlus jobs or Visimage contexts.&lt;br /&gt;
&lt;br /&gt;
===Testing AskPlus Jobs===&lt;br /&gt;
&lt;br /&gt;
:You will need to make two changes to run a UC4 job in test.&lt;br /&gt;
&lt;br /&gt;
:1. Change the job login so that the job logs in as botest.&lt;br /&gt;
:2. Change the askplus run parms to use the test profilename.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Original syntax:&lt;br /&gt;
/usr/bin/nice -20 /ASKPLUS/askplus -asummit_live &amp;lt;&amp;lt; EOD&lt;br /&gt;
# New syntax:&lt;br /&gt;
/usr/bin/nice -20 /ASKPLUS/askplus -asummit_test &amp;lt;&amp;lt; EOD&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Testing Visimage Contexts===&lt;br /&gt;
&lt;br /&gt;
In Visimage, create a new connection that uses the test profile.  When you start server, you will be connected to the test Eloquence instance using the test profile and the test macro file.&lt;/div&gt;</summary>
		<author><name>&gt;Johno</name></author>
		
	</entry>
</feed>