Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» why do i get this error
Sun Apr 23, 2017 9:43 pm by anbarasi

» wait property
Sun Apr 23, 2017 12:50 pm by anbarasi

» What is the use of Selenium Remote Control
Fri Apr 21, 2017 7:24 pm by azharuddin

» How can I fix it? TCP PORT Exhaustion
Wed Apr 19, 2017 3:29 pm by JohnSnow

» Difference between QTP, Selenium and Silk test
Wed Apr 19, 2017 2:30 pm by Basilios Will

» Locator for google document
Tue Apr 18, 2017 10:01 pm by SergeyK

» I encountered a mistake: Couldn't register this node
Sat Apr 15, 2017 9:06 pm by skyshine725

» Current version tutorial for just creating a browser instance - Visual Studio
Fri Apr 14, 2017 2:47 am by KilpAr

» cant able to select drop down otions
Thu Apr 13, 2017 6:08 pm by anbarasi

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

How to use a value from one test case into another test case in selenium ide.

View previous topic View next topic Go down

How to use a value from one test case into another test case in selenium ide.

Post by Saba on Thu Apr 04, 2013 4:56 pm

I have two test cases, 1st test case coding is:


store 10 a



2nd test case coding is:


echo ${a}
store a b
echo ${b}



Now, the result shows for 2nd test case in log area is:


  • [info] echo: 10
  • [info] Executing: |store | a | b |
  • [info] Executing: |echo | ${b} | |
  • [info] echo: a
If, variable 'a' value i.e. 10 passes to 2nd test case, then why; when echo ${b} command is used; it prints just 'a' and not 10.

Saba

Posts : 3
Join date : 2013-04-04

Back to top Go down

Re: How to use a value from one test case into another test case in selenium ide.

Post by Saba on Thu Apr 04, 2013 5:16 pm

Very Happy, Got my answer myself.

Saba

Posts : 3
Join date : 2013-04-04

Back to top Go down

Re: How to use a value from one test case into another test case in selenium ide.

Post by sapin on Wed Jul 10, 2013 1:30 pm

Hy Saba i have same problem .......please share how you could solve your problem

sapin

Posts : 2
Join date : 2013-07-10

Back to top Go down

Re: How to use a value from one test case into another test case in selenium ide.

Post by sapin on Wed Jul 10, 2013 1:34 pm

and please also suggest that can i start my second test case at the page where test case one stop

 Because i am working  on 4th page and for  that i have to open first 3 pages  so can i start my test case at the same place where previous test case complete.

sapin

Posts : 2
Join date : 2013-07-10

Back to top Go down

Re: How to use a value from one test case into another test case in selenium ide.

Post by ccox on Thu Jul 11, 2013 12:56 am

sapin wrote:and please also suggest that can i start my second test case at the page where test case one stop
 Delete the "open" command from the start of each following test case.  Otherwise it will try to open that page as a new one.

ccox
Master
Master

Posts : 205
Join date : 2012-01-06
Age : 32
Location : Denver, CO

Back to top Go down

Re: How to use a value from one test case into another test case in selenium ide.

Post by Ajay on Tue Jul 16, 2013 8:04 pm

Hi Saba,
When u are assigning value of a to variable b u need to use ${a}. By this it will assign the value else it will assign only the variable a.

Ajay

Posts : 3
Join date : 2013-07-16

Back to top Go down

Re: How to use a value from one test case into another test case in selenium ide.

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum