RE: Store variables

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Store variables

Paatsch, Bernd
Store variables
Thanks for the info. That will do the trick.
--Bernd


From: Guillaume Boudreau [mailto:[hidden email]]
Sent: Thursday, January 05, 2006 2:32 PM
To: [hidden email]
Subject: RE: [selenium-users] Store variables

Well, it looks like the link below still works, and redirects to http://wiki.openqa.org/display/SEL/global
There you go.
 
- Guillaume Boudreau
 

From: Guillaume Boudreau [mailto:[hidden email]]
Sent: January 5, 2006 5:30 PM
To: [hidden email]
Subject: RE: [selenium-users] Store variables

I posted a Contributed User-Extension that allowed such a thing, called "store...Global", on the old site:
http://confluence.public.thoughtworks.org/display/SEL/global
No idea where the contributed user-extensions are on the new site. Someone know ?
 
- Guillaume
 

From: Paatsch, Bernd [mailto:[hidden email]]
Sent: January 5, 2006 5:01 PM
To: '[hidden email]'
Subject: [selenium-users] Store variables

Hello,

I am fairly new to Selenium and have written a few scripts using the store command and the TestRunner.
Example
...
        <!-- Setting all the variables first -->
        <tr>
                <td>store</td>
                <td>http://172.16.19.90</td>
                <td>base_url</td>
        </tr>
        <tr>
                <td>store</td>
                <td>9208</td>
                <td>login_name</td>
        </tr>
        <tr>
                <td>store</td>
                <td>German</td>
                <td>login_language</td>
        </tr>
        <tr>
                <td>store</td>
                <td>'Login'</td>
                <td>login_button</td>
        </tr>
        <!-- Starting the test sequence -->
        <tr>
                <td>open</td>
                <td>${open_url}</td>
                <td></td>
        </tr>
        <tr>
                <td>type</td>
                <td>txtLoginForm</td>
                <td>${login_name}</td>
        </tr>
        <tr>
                <td>select</td>
                <td>sltDefLanguage</td>
                <td>label=${login_language}</td>
        </tr>
        <tr>
                <td>clickAndWait</td>
                <td>//input[@type='submit' and @value=${login_button}]</td>
                <td></td>

...


Is it possible to have the part where I store all the variables in an separate file?
Or is it possible to have a text file with all the variables I like to use for the test, load them into the store and then start the test?

Thanks,
--Bernd




Loading...