Need to understand how extract user scenario works in Rapise

Wednesday, March 9, 2016 11:33:40 AM
Hi,
   I have created Login testcase of login page from Rapise,then i have created scenario by using extract user scenario named it as Login.
Now again i have created new testcase and named it as Homepage .

If i want to call  login user scenario (which was created inside login.js file) inside homepage.js file, then how it would be possible?

Regards,
Naina
2 Replies
Thursday, March 10, 2016 3:36:42 PM
Avatar
re: Naina on Wednesday, March 9, 2016 11:33:40 AM
Hi Naina

When you select some code in Rapise and then choose to Extract a user scenario it creates a new JavaScript function with the code and replaces the highlighted text with a call to that function. You can also make calls to that function anywhere else in the main test script file.

Please feel free to log a help desk ticket if you need more assistance.

Regards

Sarah
Friday, March 11, 2016 6:18:35 AM
Avatar
re: inflectra.sarahx on Thursday, March 10, 2016
Hi,
   Thanks for the reply.
Again i have one doubt ,how can i call same extracted function inside other test script?
For eg:- if i created user scenario login and then created new test script names as home.Then how can i call login function inside home test script?
Statistics
  • Started: Wednesday, March 9, 2016 11:33:40 AM
  • Last Reply: Friday, March 11, 2016 6:18:36 AM
  • Replies: 2
  • Views: 1785