Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
parameterize testing
#1
Not Solved
Hi:

please take a look at the script I captured below. I want to change 'QA instance' to parameter so same case can be run on different environment.

also i want to parameterize my user/pw entry.

could someone show me how to do that?

thanks


Code:
Browser("QA Instance").Page("QA Instance").Frame("gsft_main").WebEdit("user_name").Set "ronny"
Browser("QA Instance").Page("QA Instance").Frame("gsft_main").WebEdit("user_password").SetSecure "4c7bf359ad993c0fe76af0fe3"
Browser("QA Instance").Page("QA Instance").Frame("gsft_main").WebButton("Login").Click
Browser("QA Instance").Page("QA Instance").Frame("gsft_nav").Link("Homepage").Click
Browser("QA Instance").Page("QA Instance").Frame("gsft_nav").Link("Service Catalog").Click
Browser("QA Instance").Page("QA Instance").Frame("gsft_nav").Link("My Open Incidents").Click
Browser("QA Instance").Page("QA Instance").Frame("gsft_nav").Link("My Closed Incidents").Click
Browser("QA Instance").Page("QA Instance").WebButton("Logout").Click
Reply
#2
Not Solved
Hi,

Try this code:

Code:
Browser("QA Instance").Page("QA Instance").Frame("gsft_main").WebEdit("user_name").Set DataTable(“UserName”, dtGlobalSheet)

Browser("QA Instance").Page("QA Instance").Frame("gsft_main").WebEdit("user_password").SetSecure DataTable(“Password”, dtGlobalSheet)

Hope It will help you.....
Smile
Reply
#3
Not Solved
Hi

You can parameterize in keyword view in Value column. click on right side in value column one window will pop-up and you can set up your parameters for login and pwd in global data sheet.(Insert name value like login name or password - it will show in global sheet.)

let me know if it helps
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  parameterize Excel Sheet Name in SQL bjitsidhu 0 2,941 07-20-2014, 08:34 AM
Last Post: bjitsidhu
  Parameterize at different pace, and multiple write to Excel joncfrazier 0 2,671 07-10-2012, 12:05 AM
Last Post: joncfrazier
  Parameterize Excel Columns for 2-Dimensional Array defcon3 2 3,628 06-20-2012, 04:59 PM
Last Post: defcon3
  Parameterize Melody M 11 7,480 11-21-2011, 01:28 AM
Last Post: naunihal
  How to parameterize the value which is in Object repository AdhikariS 4 7,449 09-06-2011, 12:38 PM
Last Post: AdhikariS

Forum Jump:


Users browsing this thread: 2 Guest(s)