Running selenium IDE testcases in Jmeter.

1,919 views
Skip to first unread message

ravinder reddy

unread,
Jul 4, 2011, 5:52:22 AM7/4/11
to Selenium Users
hi all,
I am new to selenium.i recored some test cases using selenium IDE.i
want to run those test cases from Jmeter.
so pls kindly any one suggest me how to do that.and descreibe the
steps how to do ?

thanks,
ravi.m

Mark Collin

unread,
Jul 4, 2011, 5:58:00 AM7/4/11
to seleniu...@googlegroups.com
You are looking at advanced stuff, you will need to convert the IDE test to
a Selenium RC with jUnit test and then convert that to JMX if I remember
correctly.

This will probably be more help:

https://groups.google.com/d/topic/selenium-users/_3g8goYyr9U/discussion

thanks,
ravi.m

--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to
selenium-user...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/selenium-users?hl=en.


--
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

If you have received this email in error please notify postm...@ardescosolutions.com

ravinder reddy

unread,
Jul 4, 2011, 7:02:38 AM7/4/11
to seleniu...@googlegroups.com
thanks for giving reply......
 

i had some small doubts....
1)how to save the IDE script as a junit  file.
2)and how to open that file in eclipse and save as a java file.
3)can u explain what are the settings we need to do before gng to save that file with .java .and what are the arguments we need to give to the respective fields.
 

 pls help me out.

thanks,
ravi.m

Mark Collin

unread,
Jul 4, 2011, 7:16:18 AM7/4/11
to seleniu...@googlegroups.com

In selenium IDE

 

Option -> Format -> jUnit4 will convert it to a Java file you can open in eclipse that utilises jUnit4

chaman kalra

unread,
Jul 4, 2011, 7:16:56 AM7/4/11
to seleniu...@googlegroups.com
refer the seleniumhq.org site u will get the stuff related to selenium
Thanks & Regards
Chaman Kalra
Internet Email :lucky...@Gmail.Com





==============
Dhan Nirankar Ji

ravinder reddy

unread,
Jul 4, 2011, 7:50:44 AM7/4/11
to seleniu...@googlegroups.com
thanks for giving reply mark.......

after selecting the junit format from optons its showing the junit code in source tab. my doubt is how to store the data which is in source tab as it is.

chaman kalra

unread,
Jul 4, 2011, 7:55:28 AM7/4/11
to seleniu...@googlegroups.com
hi ravinder,

you simply save the test case file save as file name

ravinder reddy

unread,
Jul 4, 2011, 7:59:01 AM7/4/11
to seleniu...@googlegroups.com
here i am sending the details how i done:
1)change the format as junit.then soure code is showing in the juint format.actual junit souce is here.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>DDCLogin</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">DDCLogin</td></tr>
</thead><tbody>
<tr>
    <td>open</td>
    <td>http://192.168.1.93/InndocsDDC/</td>
    <td></td>
</tr>
<tr>
    <td>assertTitle</td>
    <td></td>
    <td></td>
</tr>
<tr>
    <td>type</td>
    <td>tbUserName</td>
    <td>admin</td>
</tr>
<tr>
    <td>type</td>
    <td>tbPassword</td>
    <td>admin</td>
</tr>
<tr>
    <td>clickAndWait</td>
    <td>btnLogin</td>
    <td></td>
</tr>
<tr>
    <td>assertTitle</td>
    <td>Inndocs – Dashboard</td>
    <td></td>
</tr>

</tbody></table>
</body>
</html>
2)if i select export testcase as java-junit from file and save it with java extension.the code is like this

import junit.framework.Test;
import junit.framework.TestSuite;

public class DDCLogin1 {

    public static Test suite() {
        TestSuite suite = new TestSuite();
        suite.addTestSuite(DDCLogin.class);
        return suite;
    }

    public static void main(String[] args) {
        junit.textui.TestRunner.run(suite());
    }
}


how to save first case data as a java file...
pls help me........

On Mon, Jul 4, 2011 at 5:20 PM, ravinder reddy <m.ravinde...@gmail.com> wrote:

ravinder reddy

unread,
Jul 4, 2011, 8:04:00 AM7/4/11
to seleniu...@googlegroups.com
i got it mark..thanks a lot.......
and next what i have to do now..
now open that java file in eclipse right.........
after that i have to change some property's right.can u tell me how to change and which arguments we need to pass it.......

Mark Collin

unread,
Jul 4, 2011, 8:14:55 AM7/4/11
to seleniu...@googlegroups.com

It wasn’t me that supplied the last answer.

 

As for converting Selenium to Jmeter have a look at the thread I supplied in my original post, however if you are having problems just getting a Selenium IDE test into Java you really are not going to have much hope in doing the conversion.

 

I would suggest learning some Java/jUnit first and coming back to this when you have a decent grounding.

ravinder reddy

unread,
Jul 4, 2011, 8:17:51 AM7/4/11
to seleniu...@googlegroups.com
thanks for u r reply.....
Reply all
Reply to author
Forward
0 new messages