i want to pass parameters with some values in the same test.
How to call the parameters in the test and to associate it
Answer Posted / arun
1.Associate that action to your main action
make sure you have declared the parameters in Accociated
actions... (both input and output parameters)
2. Call that Associated action from the amin action
using "RunAction" command
Syn:
RunAction "Action Name","Input parameter1","Input
Parameter2"....,"output parameter1","output parameter2"...
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can any one give me the script for drag and drop or setselection functions ?like in a not pad i want to select 5 lines
What is meant by the automation framework?
WHAT'S THE TESTER'S ROLE DURING MIGRATION OF CODE FROM TESTING TO PRODUCTION ENVIRONMENT
What is tree view in automation testing?
Stop automating the tests which run once?
Tell me what is the purpose of getoptions() method?
Tell me how can you switch back from a frame?
Why automation testing?
Do you know what is functional testing?
Currently I do not have any automation in place in my project, but now I want to implement automation, what would be my steps?
Elaborate the situation where automation testing can’t be used for agile methods?
wat would be the parameteries for ul testing for web applilcation
what is the difference between keyword driven frame work and data driven frame work.
Hello Friends, I am Looking for the Load runner-Performance testing institute in HYD. I see most of them in this site are suggesting for TS Technologies as best institute for PT load runner. We you pls suggest me, Does this institute offers good coaching on Weekend Sessions/Batches? Does it covers all the course contents in these session? Please help me on this guys..
Hi, Below is the code that i ran on selenium RC using eclipse IDE and java coding.: package source; import org.testng.annotations.BeforeSuite; import org.testng.annotations.Test; import com.thoughtworks.selenium.*; public class parameterized extends SeleneseTestCase { private Selenium browser; public static void main(String []args) { String arr[] = new String[5]; arr[0]= "bert"; arr[1]= "regular"; arr[2]= "copyonly"; arr[3]= "doert"; arr[4]= "inter"; parameterized obj = new parameterized(); obj.setUp(); obj.login_parameterize(arr); } @BeforeSuite public void setUp() { browser = new DefaultSelenium("localhost",4444, "*chrome", "http://goolge.com"); browser.start(); browser.open("http://goolge.com"); browser.waitForPageToLoad("30000"); browser.windowMaximize(); browser.open("/"); browser.click("gb_23"); } @Test public void login_parameterize(String[] arr ) { for(int i=0;i<=5;i++) { for(int j=0;j<=2; j++) { browser.type("//input[@id='Email']", arr[i]); browser.type("//input[@id='Passwd']", arr[i]); browser.click("//input[@id='signIn']"); browser.waitForPageToLoad("30000"); } } } public void EnterValuesIntoTextField_CheckWithGetValue() throws Exception { selenium.open("http://www.essaywriter.co.uk"); assertEquals("", selenium.getValue("id=textInput")); selenium.type("id=textInput", "Text In The Field"); assertEquals("Text In The Field", selenium.getValue("id=textInput")); } } When i ran this test i got an error which says: "Method login_parameterize requires 1 parameters but 0 were supplied in the @Test annotation." Any help is much appreciated. thank Gab