BI Publisher Parameters Input File
For the BI Publisher plug-in test, you can use a parameters input file to specify the values that should be selected for the parameters in each report that is to be tested. The file should contain URLs to each report to be tested with the parameter values included in the URL.
To create the Parameter Input file:
- Open a blank text file in notepad or a text editor.
- Open a web browser and navigate to the report you want to test on the xmlpserver. Important! You must use the xmlpserver.
- Select the parameter values you’d like on the report for this test.
- In the upper right corner of the report, click Action Option — Share Report Link. Choose Current Page.
- Copy the URL from the browser into the text file on a new line.
- Repeat steps 2–5 for each BIP report that you would like to test.
- Save the file as ParametersInput.txt in your BVT folder. This specific name is not required. You can name this as specific as you want to describe the reports that you are specifying within it. When I test, I name this similar to the name of the bvt config file that I am creating for this test.
- Specify this ParametersInput.txt file (along with any necessary path if not saved in the bvt folder) in the ParametersInput parameter in your config file.
You do not need to create a parameters URL for each BI Publisher environment that you’ll be running your tests against. As long as the catalog paths match in your testing environments, BVT will figure out the deployment path to each report in each environment.
Results Section
The last section of the config file is the Results section. Here is where you can specify the name of the folder where the results will be stored. The default is “Results”. I recommend changing this to something similar to what you titled the config script where it contains the name of the folder the test will be run on, and the test(s) run. There is also the ability to specify that the folders are timestamped. This is helpful if you will be running the test multiple times and do not want the folder results overwritten. *See my note in Part 3 about why this is nice but also makes the code for comparing results a bit more difficult to create.
<?xml version="1.0" encoding="UTF-8"?>
<TestConfiguration>
<Deployment name="PreUpgrade" description="First Test Target">
<Server>
<!-- AnalyticsURL Needs to point to the analytics page -->
<!-- XmlpURL Needs to point to the BI Publisher page -->
<!-- ex:<AnalyticsURL>http://servername:9704/analytics</AnalyticsURL> -->
<!-- ex: <XmlpURL>https://servername/xmlpserver</XmlpURL> -->
<!-- ex: <VaURL>https://servername/va</VaURL> -->
<!-- If you are using a test certificate on the server for SSL and want to bypass SSL certificate validation, set the IgnoreSSLCertErrors to true. This setting is strictly for Test environments only -->
<AnalyticsURL></AnalyticsURL>
<XmlpURL></XmlpURL>
<VaURL></VaURL>
<UserName></UserName>
<Password></Password>
<IgnoreSSLCertErrors>false</IgnoreSSLCertErrors>
</Server>
</Deployment>
<Deployment name="PostUpgrade" description="Second Test Target">
<Server>
<!-- AnalyticsURL Needs to point to the analytics page -->
<!-- XmlpURL Needs to point to the BI Publisher page -->
<!-- ex: <AnalyticsURL>http://servername:9704/analytics</AnalyticsURL> -->
<!-- ex: <XmlpURL>https://servername/xmlpserver</XmlpURL> -->
<!-- ex: <VaURL>https://servername/va</VaURL> -->
<!-- If you are using a test certificate on the server for SSL and want to bypass SSL certificate validation, set the IgnoreSSLCertErrors to true. This setting is strictly for Test environments only -->
<AnalyticsURL></AnalyticsURL>
<XmlpURL></XmlpURL>
<VaURL></VaURL>
<UserName></UserName>
<Password></Password>
<IgnoreSSLCertErrors>false</IgnoreSSLCertErrors>
</Server>
</Deployment>
<Tests>
<!-- CAUTION: The CatalogRoot Value for BIP Plugin is different than other plugins-->
<!-- For BIP remove the virtual paths where the other plugins use physical paths-->
<!-- To get the physical path of an item, in the Oracle Anwsers catalog, right click the item and select "Properties"-->
<!-- Ex: For BIP : "/Sample Lite/Published Reporting"-->
<!-- Ex: For others: "/shared/Sample Lite/Published Reporting"-->
<TestPlugin name="com.oracle.biee.bvt.plugin.catalog" enabled="true">
<Test name="GetCatalogTest" enabled="true">
<Parameter name="CatalogRoot" value="/"/>
</Test>
</TestPlugin>
<TestPlugin name="com.oracle.biee.bvt.plugin.ui" enabled="true">
<Parameter name="CatalogRoot" value="/"/>
<!-- how many threads to spawn to load reports, should be greater than 0, less than 50 -->
<Parameter name="ThreadQueueSize" value="1" />
<!-- Timeout for loading each report in MSecs should be between 5 secs and 10 mins -->
<Parameter name="ThreadTimeout" value="60000" />
<!-- Which BrowserType to use to load reports, Firefox, InternetExplorer. Leave empty for default browser -->
<Parameter name="BrowserType" value=""/>
<!-- Location of Firefox browser to be used, if multiple instances of Firefox browser exists on a Linux operating system machine. Leave empty for default browser location -->
<Parameter name="FirefoxLocationInLinux" value=""/>
<Test name="FindReportSnapshotDifferences" enabled="true">
<!-- ScoreThreshold should be between 0.00 and 1.00 -->
<Parameter name="ScoreThreshold" value="0.95"/>
</Test>
<Test name="FindDashboardSnapshotDifferences" enabled="true">
<Parameter name="PromptInputFile" value="DashboardPrompts.txt" />
<Parameter name="ScoreThreshold" value="0.95"/>
</Test>
</TestPlugin>
<TestPlugin name="com.oracle.biee.bvt.plugin.report" enabled="true">
<!-- Timeout for loading each report in MSecs should be between 5 secs and 10 mins -->
<Parameter name="ReadTimeout" value="15000" />
<Test name="ExportReportsToPDF" enabled="true">
<Parameter name="CatalogRoot" value="/"/>
<Parameter name="ScoreThreshold" value="0.95"/>
</Test>
<Test name="ExportReportsToExcel2007" enabled="true">
<Parameter name="CatalogRoot" value="/"/>
<Parameter name="ScoreThreshold" value="0.95"/>
</Test>
<Test name="ExportReportsToCSV" enabled="true">
<Parameter name="CatalogRoot" value="/"/>
<!-- Set a limit on the maximum tolerance for fluctuations in floating point numbers in report data. Ex:"0" for no tolerance. "0.1, "0.001", etc.-->
<Parameter name="DiffTolerance" value="0"/>
</Test>
</TestPlugin>
<TestPlugin name="com.oracle.biee.bvt.plugin.dashboard" enabled="true">
<Test name="ExportDashboardsToXML" enabled="true">
<Parameter name="CatalogRoot" value="/"/>
<!-- Paste the prompted links to the following file-->
<Parameter name="PromptInputFile" value="DashboardPrompts.txt"/>
<Parameter name="ExportAllDashboards" value="true"/>
<!-- Set a limit on the maximum tolerance for fluctuations in floating point numbers in report data. Ex:"0" for no tolerance. "0.1, "0.001", etc.-->
<Parameter name="DiffTolerance" value="0"/>
</Test>
</TestPlugin>
<TestPlugin name="com.oracle.biee.bvt.plugin.bip" enabled="true">
<Test name="ExportReportsToPDF" enabled="true">
<!-- The CatalogRoot Value for BIP Plugin is different than other plugins-->
<!-- For BIP remove the virtual paths where the other plugins use physical paths-->
<!-- Ex: For BIP : "/Sample Lite/Published Reporting"-->
<!-- Ex: For others: "/shared/Sample Lite/Published Reporting"-->
<Parameter name="CatalogRoot" value="/"/>
<Parameter name="ScoreThreshold" value="0.95"/>
</Test>
<Test name="ExportReportsWithParametersToPDF" enabled="true">
<Parameter name="ParametersInputFile" value="ParametersInputs.txt" />
<Parameter name="ScoreThreshold" value="0.95"/>
</Test>
</TestPlugin>
<TestPlugin name="com.oracle.biee.bvt.plugin.va" enabled="true">
<Parameter name="CatalogRoot" value="/"/>
<!-- how many threads to spawn to load reports, should be greater than 0, less than 50 -->
<Parameter name="ThreadQueueSize" value="1" />
<!-- Timeout for loading each report in MSecs should be between 5 secs and 10 mins -->
<Parameter name="ThreadTimeout" value="60000" />
<!-- Which BrowserType to use to load reports, Firefox, InternetExplorer. Leave empty for default browser -->
<Parameter name="BrowserType" value=""/>
<!-- Location of Firefox browser to be used, if multiple instances of Firefox browser exists on a Linux operating system machine. Leave empty for default browser location -->
<Parameter name="FirefoxLocationInLinux" value=""/>
<Test name="FindVAProjectSnapshotDifferences" enabled="true">
<Parameter name="ScoreThreshold" value="0.95"/>
</Test>
</TestPlugin>
</Tests>
<Results>
<LogPath timestampFolders="false">Results</LogPath>
</Results>
</TestConfiguration>