Shabana, Based on the below steps, Step1. Record and convert your script to selenium java-junit format using selenium ide. Step2. open the eclipse and save that file as a java file. Step3. Using junit run that file but before that you need to add selenium-server.jar file in eclipse. Step4. After that test runs successfully you will get .class file under bin folder. Step5. Setup your Run configuration settings for converting java file to jar. Step6. Select .java file and .class together and convert to .jar file. Step7. Paste that .jar file into lib/junit folder. Step8. start your j-meter server and see the magic. I got the class names in JMeter by adding '*Sampler --> JUnit Request*'. Then am adding listeners (Please refer the *jmx.png* from the attachment). After that, I am running the test plan through ant. Finally I received only JUnit Request in html report (Please refer *JMeterResults1.html* from the attachment). My requirement is to get all the URLs of the test case. For example, if we record and play back a single test case, we can get the URL of each action in html report (Please refer *JMeterResults.html* from the attachment). Similarly, JUnit Request contains many classes. Each class contain many URLs. If we are running the test plan, I need to get the URLs of the class instead of JUnit Request. Please let me know how to get that. Awaiting for you reply. Thanks On Wed, Oct 27, 2010 at 5:27 PM, Shaba K wrote: > I don't really understand what does custom listeners mean. > > If you meant generating the test result report for the number of pass or > fail test report. > > You can generate a HTML report.Its been some thing i worked on it .for > which i don't recall right away if i do will let you know. > > -Shabana > > On Wed, Oct 27, 2010 at 7:24 AM, Vasuki wrote: > >> Hi Shabana, >> >> Thanks for your reply. >> >> I have added all the listeners which is present in JMeter Thread Group >> --> Add --> Listeners. After running the test plan, I can able to see >> only the JUnit Request label. >> >> Is it possible to add any custom listeners for getting the URLs of the >> test cases? If it is, then please let me know how to do it. >> >> Awaiting for your reply. >> >> Thanks. >> >> >> On Oct 21, 6:41 pm, Shaba K wrote: >> > You gotto add listeners >> > >> > That suits your requirements & then you are all set. >> > >> > -Shabana >> > >> > On Thu, Oct 21, 2010 at 12:59 PM, Vasuki >> wrote: >> > > Friends, >> > >> > > Finally, I can able to run the selenium+junit+jmeter successfully. >> > > After that, I am running the stored .jmx file through ant. I received >> > > a html report that contains only JUnit Request and its total time >> > > taken to run all the test cases of that class (because of adding >> > > Thread Group --> Sampler --> JUnit Request as per the steps mentioned >> > > in the above thread). >> > >> > > The report shown like below: >> > >> > > Summary:::: >> > >> > > Tests Failures Success Rate Average Time Min Time Max >> > > Time >> > > 1 0 100.00% 1827903 ms 1827903 >> > > ms 1827903 ms >> > >> > > Pages::: >> > >> > > URL Tests Failures Success Rate Average Time Min >> > > Time Max Time >> > > JUnit Request 1 0 100.00% 1827903 ms >> > > 1827903 ms 1827903 ms expand/collapse >> > >> > > My requirement is to see all the test cases (as well as URLs of the >> > > test case) and corresponding time taken to run the test cases of a >> > > JUnit Request classname. >> > >> > > Please let me know how to get that. >> > >> > > On Oct 6, 11:01 am, Sasi kumar wrote: >> > > > thanks for your reply,let me tell what i have done so youu can point >> > > > me, >> > >> > > > iam already automating usingseleniumin java using netbeans, i have >> > > > created jar with class,java and placed it underjmeterlib. >> > >> > > > addedselenium,junitjars there .now if i start myjmeteri can see >> > > > the package ie class name there. >> > >> > > > i also tried starting slenium server there!! >> > >> > > > am i missing some thing?? >> > >> > > > few doubts, >> > >> > > > i) should i start theseleniumserver in code >> > > > ii) i havejunitrelated code in my java file (Testsuite) >> > > > iii) do i have to do anything specific injmeter >> > >> > > > On Oct 5, 3:45 pm, NeelakandanRVJ wrote: >> > >> > > > > Then problem may occur because of converting java and class file >> to >> > > jar. you >> > > > > should follow the proper steps to making jar file. Before making >> jar >> > > file >> > > > > you should do some configurations in eclipse. >> > >> > > > > On Tue, Oct 5, 2010 at 3:56 PM, Sasi kumar >> > > wrote: >> > > > > > i have that too!! >> > >> > > > > > On Oct 5, 8:11 am, NeelakandanRVJ wrote: >> > > > > > > Make sure you should placejunitjar also insidejmeter >> > >> > > > > > > On Thu, Sep 30, 2010 at 11:48 AM, Vasuki < >> > > subharamamur...@gmail.com> >> > > > > > wrote: >> > > > > > > > Hi, >> > >> > > > > > > > I follow the steps that mentioned by Neelakandan. >> > >> > > > > > > > I selected the .java file and .class file together and >> convert >> > > that as >> > > > > > > > a .jar file. Then, I placed that .jar file under >> > > lib/junitdirectory. >> > > > > > > > Also, I placed theselenium-server.jar file injmeter/lib >> > > directory. >> > >> > > > > > > > I find the class inJMeter. But I can't able to run the load >> test. >> > >> > > > > > > > Please suggest me how to resolve the issue. >> > >> > > > > > > > On Sep 30, 11:00 am, Vasuki >> wrote: >> > > > > > > > > Hi, >> > >> > > > > > > > > Thanks for your reply. >> > >> > > > > > > > > I already placed theselenium-server.jar underjmeter/lib >> > > directory. >> > >> > > > > > > > > I really don't know what I missed. >> > >> > > > > > > > > On Sep 29, 7:29 pm, Shaba K wrote: >> > >> > > > > > > > > >Selenium-server.jar i guess thats required too >> > >> > > > > > > > > > put that injmeter/lib >> > >> > > > > > > > > > On Wed, Sep 29, 2010 at 11:09 AM, Sasi kumar < >> > > sasiku...@gmail.com> >> > > > > > > > wrote: >> > > > > > > > > > > hi all .i placed my classes andjunitjar.now iam able >> to get >> > > my >> > > > > > > > > > > classnames injmeter.but iam not able to run. >> > >> > > > > > > > > > > can anyone suggest >> > >> > > > > > > > > > > On Sep 7, 4:13 am, Getafix wrote: >> > > > > > > > > > > > I still can't get to see my classname in >> myJMeter-Junit >> > > > > > sampler >> > > > > > > > > > > > I did all that was mentioned ... >> > > > > > > > > > > > In addition to my earlier reply , i did the >> following >> > > > > > > > > > > > 1.Added thejmeter\lib\junitfolder to my classpath >> > > > > > > > > > > > 2.Mine is just ajunittest that extends TestCase >> (public >> > > class >> > > > > > > > > > > > SampleTest extends TestCase) as pointed by >> Neelakantan >> > > > > > > > > > > > 3.Deleted my existing jar aspointed by Shoba. I just >> have >> > > > > > > > 'mytest.jar' >> > > > > > > > > > > > in thejmeter\lib\junitdir >> > > > > > > > > > > > (mytest.jar was made out of both the .java and >> .class >> > > files) >> > > > > > > > > > > > 4.I don't have to start sel server , but even tried >> that >> > > :( >> > > > > > > > > > > > 5.I then start myjmeter, add thread group , >> > > addjunitsampler >> > > > > > and >> > > > > > > > > > > > could not see anything in the classname dropdown !! >> > >> > > > > > > > > > > > What else could i be doing wrong?? >> > >> > > > > > > > > > > > Much appreciated >> > >> > > > > > > > > > > > On Sep 7, 3:03 am, Shaba K >> wrote: >> > >> > > > > > > > > > > > > It works fine now ..... >> > >> > > > > > > > > > > > > On Mon, Sep 6, 2010 at 10:31 AM, Shaba K < >> > > > > > shabazi...@gmail.com> >> > > > > > > > wrote: >> > > > > > > > > > > > > > Hey ensure that there is no other jar other than >> the >> > > one >> > > > > > you >> > > > > > > > placed >> > > > > > > > > > > in the >> > > > > > > > > > > > > > lib/junit& only then start theJMeterserver. >> > >> > > > > > > > > > > > > > for ex:Jmeterhas test.jar remove that & just >> have >> > > only the >> > > > > > jar >> > > > > > > > you've >> > > > > > > > > > > > > > created. >> > >> > > > > > > > > > > > > > Also ensure to start theseleniumserver. >> > >> > > > > > > > > > > > > > I had similar issue but unfortunatley i see all >> my >> > > > > > testcases >> > > > > > > > fail :( >> > >> > > > > > > > > > > > > > -Shaba >> > >> > > > > > > > > > > > > > On Mon, Sep 6, 2010 at 8:48 AM, Getafix < >> > > > > > ashg...@gmail.com> >> > > > > > > > wrote: >> > >> > > > > > > > > > > > > >> Hi Everyone, >> > >> > > > > > > > > > > > > >> I created a jar file with a java class >> extending the >> > > > > > testcase >> > > > > > > > and >> > > > > > > > > > > > > >> placed in lib/junitlocation, compiled it and >> jarred >> > > it . >> > > > > > Now >> > > > > > > > in >> > > > > > > > > > > > > >>JMeterwhen i create a thread group -> >> addJunitrequest >> > > i >> > > > > > do >> > > > > > > > not see >> > > > > > > > > > > > > >> the class name inJmeter? Can anyone let me know >> what >> > > > > > mistake ? >> > >> > > > > > > > > > > > > >> Thanks Very much >> > >> > > > > > > > > > > > > >> On Sep 3, 6:57 pm, Shaba K < >> shabazi...@gmail.com> >> > > wrote: >> > > > > > > > > > > > > >> > On Thu, Sep 2, 2010 at 1:51 PM, Deepak Koul < >> > > > > > > > kould...@gmail.com> >> > > > > > > > > > > wrote: >> > > > > > > > > > > > > >> > > Does ur test extend the TestCase Class ???? >> or >> > > > > > > > SeleneseTestCase >> > >> > > > > > > > > > > > > >> > > Hi deepak/neela, >> > >> > > > > > > > > > > > > >> > I have exactly followed steps mentioned by >> you on >> > > both >> > > > > > > > creating a >> > > > > > > > > > > test >> > > > > > > > > > > > > >> > script inselenium& then creating jar & then >> > > putting them >> > > > > > > > across to >> > > > > > > > > > > the >> > > > > > > > > > > > > >> >jmeter/lib/junit,placing theseleniumserver >> > > injunit/lib >> > > > > > & >> > > > > > > > then >> > > > > > > > > > > > > >> starting >> > > > > > > > > > > > > >> > thejmeterserver. >> > >> > > > > > > > > > > > > >> > I wonder i don't see any of my classes being >> > > populated >> > > > > > > > injmeter. >> > >> > > > > > > > > > > > > >> > Am i missing something. >> > >> > > > > > > > > > > > > >> > Also should i create a executabel jar or just >> a >> > > jar file >> > > > > > > > through >> > > > > > > > > > > > > >> eclipse. >> > >> > > > > > > > > > > > > >> > Any help /insight is highly appreciated. >> > >> > > > > > > > > > > > > >> > -Shaba >> > >> > > > > > > > > > > > > >> > > On Thu, Sep 2, 2010 at 6:12 PM, Shaba K < >> > > > > > > > shabazi...@gmail.com >> > >> > > > > > > > > > > > > >> wrote: >> > >> > > > > > > > > > > > > >> > >> Hi Deepak/Neela, >> > >> > > > > > > > > > > > > >> > >> I did start theseleniumserver , i still >> don't >> > > see my >> > > > > > > > class >> > > > > > > > > > > files >> > > > > > > > > > > > > >> being >> > > > > > > > > > > > > >> > >> populated in theJMeterclaasname: >> > > > > > > > > > > > > >> > >> I have mentioned the package filter too. >> > >> > > > > > > > > > > > > >> > >> It doesnt work with or without package >> filter. >> > >> > > > > > > > > > > > > >> > >> Am i missing something. >> > >> > > > > > > > > > > > > >> > >> MySelenium+Junitscript works fine when >> executed >> > > in >> > > > > > > > Eclipse. >> > >> > > > > > > > > > > > > >> > >> -Shaba >> > > > > > > > > > > > > >> > >> On Thu, Sep 2, 2010 at 12:40 PM, Deepak >> Koul >> > > < >> > > > > > > > > > > kould...@gmail.com >> > > > > > > > > > > > > >> >wrote: >> > >> > > > > > > > > > > > > >> > >>> startseleniumserver >> > >> > > > > > > > > > > > > >> > >>> On Thu, Sep 2, 2010 at 4:36 PM, Shaba K >> < >> > > > > > > > > > > shabazi...@gmail.com> >> > > > > > > > > > > > > >> wrote: >> > >> > > > > > > > > > > > > >> > >>>> Hi, >> > >> > > > > > > > > > > > > >> > >>>> Though clean steps were mentioned & i >> > > followed it >> > > > > > as a >> > > > > > > > bible. >> > > > > > > > > > > > > >> > >>>> I don't see my class files being >> populated at >> > > all. >> > >> > > > > > > > > > > > > >> > >>>> Is there any step that i am missing i >> > > followed the >> > > > > > > > below >> > > > > > > > > > > inJmeter >> > >> > > > > > > > > > > > > >> > >>>> 1. writtenjunittests inseleniummade jar >> of >> > > the >> > > > > > > > classes >> > >> > > > > > > > > > > > > >> > >>>> 2. copy and paste the jar files >> > > > > > intojmeter/lib/junit >> > > > > > > > > > > directory >> > > > > > > > > > > > > >> copied >> > > > > > > > > > > > > >> > >>>> theselenium-server tojmeter/lib >> > >> > > > > > > > > > > > > >> > >>>> 3. startjmeter >> > >> > > > > > > > > > > > > >> > >>>> 4. select “test plan” >> > >> > > > > > > > > > > > > >> > >>>> 5. right click add -> thread group >> > >> > > > > > > > > > > > > >> > >>>> 6. select “thread group” >> > >> > > > > > > > > > > > > >> > >>>> 7. right click add -> sampler >> ->junitrequest >> > >> > > > > > > > > > > > > >> > >>>> 8. enter “my unit test” in the name >> > >> > > > > > > > > > > > > >> > >>>> 9. enter the package of yourjunittest >> > > > > > > > > > > > > >> > >>>> Am i missing somthing important ??? >> > >> > ... >> > >> > read more » >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Selenium Users" group. >> To post to this group, send email to selenium-users@googlegroups.com. >> To unsubscribe from this group, send email to >> selenium-users+unsubscribe@googlegroups.com >> . >> For more options, visit this group at >> http://groups.google.com/group/selenium-users?hl=en. >> >> > -- > You received this message because you are subscribed to the Google Groups > "Selenium Users" group. > To post to this group, send email to selenium-users@googlegroups.com. > To unsubscribe from this group, send email to > selenium-users+unsubscribe@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/selenium-users?hl=en. >