Skip Navigation LinksHome Page > Forums > SpiraTeam Forums > SpiraTeam Issues & Qu... > Integrated Rapise Tests a...
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:
If you have code written using Excel:
Spreadsheet.DoAttach('searchterms.xls', 'Sheet1');// Go through all rowswhile(Spreadsheet.DoSequential()){ // Read cell value from column 0 var term = Spreadsheet.GetCell(0); // Pass it into Logic function Logic(term);}
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.
And if you have any questions, please email or call us at +1 (202) 558-6885