Integrated Rapise Tests and Parameterisation

Thursday, November 17, 2011
Hi Inflectra,

I have a conundrum. I have successfully been able to parameterize Rapise tests using Excel as mentioned in the Rapise documentation. However, now I'm wanting to integrate this with SpiraTeam, the ST documentation tells me that I parameterise my tests per test instance within ST. It defines some code for identifying a default value for variables that receive no input from ST but not how or where I place this inside my script.

So we have two methods. One - read from excel. Two - read from ST.

Which method should I implement for integration with ST and if the second, then how do I change my excel parameterized script into an ST parameterized script?

Thanks again,

2 Replies
Wednesday, November 23, 2011
re: ROAMES Thursday, November 17, 2011

Hi Nick

Any global variable inside Rapise can be passed a value from SpiraTest (in the test set). The Library Information System sample project in Rapise shows an illustration of this.

Since SpiraTest only supports lower-case parameters, make sure the Javascript variable names in Rapise are all lower case.

The choice whether to use SpiraTest or Excel to parameterize your tests is up to you. The advantage of Excel is that it's easier to manage large tables of test data (at least currently). SpiraTest allows you to write a generic test in Rapise and have less technical users pass different values to that test using the web interface of SpiraTest. So on balance:

  • Excel - better for large data tables
  • SpiraTest - easier to split work between test script coder and QA designers

If you have code written using Excel:

Spreadsheet.DoAttach('searchterms.xls', 'Sheet1');
// Go through all rows
  // Read cell value from column 0
  var term = Spreadsheet.GetCell(0);
  // Pass it into Logic function

Then to switch over to SpiraTest you'd create a Test Set and add the same Test Case for each specific instance of the test (i.e. each row in Excel) and set the parameter values of the test.

Then inside Rapise you'd use simple variables such as:

 if ('undefined' == typeof(g_term))
  g_term = 'value if not called from SpiraTest';
 Logic (g_term);

Since the looping is done by RapiseLauncher and SpiraTest (based on the Test Set) not by Rapise itself.

Wednesday, November 23, 2011
re: inflectra.david Wednesday, November 23, 2011
Awesome explanation. Very clear now. Thank you so much :)

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885


  • Started: Thursday, November 17, 2011
  • Last Reply: Wednesday, November 23, 2011
  • Replies: 2
  • Views: 2944