Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
majkelos
Posts : 1
Join date : 2010-04-13

Selenium Parametrization Empty Selenium Parametrization

Tue Apr 13, 2010 2:39 am
Hi guys,
I would like to ask you about parametrisation in Selenium, but i'll
start from beginning.
1) When i was making test cases i put some essential data into
variables (eg. user id, passes, other numbers)
2) As testsuite expanded i used include command for including separate
file containing these variables into each testcase
3) Everything was working under IDE and RC
but now i've decieded that it could be useful not to include file (in
terms of including separate lines into testcase) but to include it in
background rg. from XML file.
I have worked some time on two of selenium user extensions -
"include" and "data driven" and prepared another one that can include
values from xml and store them as variables ins selenium.
source code is here: http://wklej.org/id/314615/
XML file should look like this:


variable_name
variable_value


and everything is working OK - meaning:
1) when i start selenium IDE it is loading variables and i can use
them throughout whole test suite.
2) i can oveerwrite variables and assign new value
3) it is WAY much faster than using ordinary include command
4) there is a option called "WczytajZmienne" that enables me to
include another file during test suite
BUT !
If i try to use it under selenium RC, there are some problems and RC
doesn't see my variables all the time - i supose that Selenium RC is
working like this :
- load testsuite
- load test case (and clear all other stuff)
and by the way it clears variables located in memory.
So there is qestion to you guys. How can i solve this problem ?
i see some options but i have compeletly no idea how to make them
happen:
- first is: Add additional "command" into "load test case" so as it
will load these variables (but duno where to find it and how to put
it)
- second: Define some kind of HARD VARIABLE that can be easily used
in selenium - via ${variable_name} -> i know that i just can declare
variable in script, but than it will requires me to use some
sophisticated expressions to use them in selenium, and i want it nice,
sharp and beautiful Smile
i'm realy counting on your help.
than u in advance
and best regards
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

Selenium Parametrization Empty Re: Selenium Parametrization

Wed Apr 14, 2010 11:43 am
avatar
gaurang033
Active particpant
Active particpant
Posts : 13
Join date : 2011-03-19

Selenium Parametrization Empty Re: Selenium Parametrization

Tue Mar 29, 2011 9:24 pm
No matter what framework you are using, Junit or TestNG both provides parameterization. The only difference is Junit provides it as class level, meaning only one method of the call can be parameterized while TestNG provides it at method level, mean different method of the same class can be parameterized.

see the following post that might help u .

http://qtp-help.blogspot.com/2009/05/junit-parameterization.html
Sponsored content

Selenium Parametrization Empty Re: Selenium Parametrization

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