Display results as :

Rechercher Advanced Search

Latest topics
» Run automated selenium test scripts from JIRA ondemand
Fri Dec 08, 2017 12:40 pm by azharuddin

» New! Appium Desktop
Sat Nov 25, 2017 3:51 pm by azharuddin

» Selenium WebDriver Integration
Tue Nov 21, 2017 1:06 pm by azharuddin

» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir


Selenium Parametrization

View previous topic View next topic Go down

Selenium Parametrization

Post by majkelos on 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:
XML file should look like this:


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
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
- 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
- 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


Posts : 1
Join date : 2010-04-13

Back to top Go down

Re: Selenium Parametrization

Post by Adviser on Wed Apr 14, 2010 11:43 am


Posts : 379
Join date : 2009-07-30
Location : India

Back to top Go down

Re: Selenium Parametrization

Post by gaurang033 on 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 .

Active particpant
Active particpant

Posts : 13
Join date : 2011-03-19

Back to top Go down

Re: Selenium Parametrization

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