Conversion of Selenium (cucumber framework) scripts to JMeter jmx

196 views
Skip to first unread message

deep...@gmail.com

unread,
Jan 23, 2018, 10:01:31 PM1/23/18
to codename-taurus
I'm trying to convert Selenium scripts based on cucumber framework, in to JMeter jmx format using Proxy2Jmx module. I'm sort of new to Selenium/Cucumber & Java and struggling a bit to get the conversion process working without errors/issues. My project has multiple .java files which sort of try to import several packages for them to compile/run successfully. However, during the conversion process I see compilation errors as highlighted below and hence need some help/clues from you experts out there so that I can get the script(s) converted to jmx successfully. Appreciate your help/inputs in this regard. Hoping to see a few replies on this.


[2018-01-24 11:51:29,518 DEBUG Engine.junit] Compiling .java files...
[2018-01-24 11:51:30,518 DEBUG Engine.junit] Compiling .java files...
[2018-01-24 11:51:31,536 DEBUG Engine.junit] javac exit code: 1
[2018-01-24 11:51:31,577 ERROR root] Child Process Error: Javac exited with code: 1
 warning: [options] bootstrap class path not set in conjunction with -source 1.8
C:\Program Files\Taurus\examples\selenium\LFS-ODDS\src\test\java\com\lfs\odds\runner\RunCukesTest.java:21: error: package com.lfs.odds.utility does not exist
import com.lfs.odds.utility.HtmlReport;
                           ^
C:\Program Files\Taurus\examples\selenium\LFS-ODDS\src\test\java\com\lfs\odds\runner\RunCukesTest.java:26: error: package cucumber.api does not exist
import cucumber.api.CucumberOptions;
                   ^
C:\Program Files\Taurus\examples\selenium\LFS-ODDS\src\test\java\com\lfs\odds\runner\RunCukesTest.java:27: error: package cucumber.api.junit does not exist
import cucumber.api.junit.Cucumber;
                         ^
C:\Program Files\Taurus\examples\selenium\LFS-ODDS\src\test\java\com\lfs\odds\runner\RunCukesTest.java:32: error: cannot find symbol
@CucumberOptions(plugin  ={"pretty" , "html:target/destination12"},
 ^
  symbol: class CucumberOptions
C:\Program Files\Taurus\examples\selenium\LFS-ODDS\src\test\java\com\lfs\odds\runner\RunCukesTest.java:30: error: cannot find symbol
@RunWith(Cucumber.class)
         ^
  symbol: class Cucumber
C:\Program Files\Taurus\examples\selenium\LFS-ODDS\src\test\java\com\lfs\odds\runner\RunCukesTest.java:124: error: cannot find symbol
HtmlReport hr =new HtmlReport();
^
  symbol:   class HtmlReport
  location: class RunCukesTest
C:\Program Files\Taurus\examples\selenium\LFS-ODDS\src\test\java\com\lfs\odds\runner\RunCukesTest.java:124: error: cannot find symbol
HtmlReport hr =new HtmlReport();
                   ^
  symbol:   class HtmlReport
  location: class RunCukesTest
7 errors
1 warning

grey....@gmail.com

unread,
Jan 24, 2018, 12:29:30 AM1/24/18
to codename-taurus
Hi. 
1. As you can see there are some java compilation error, so you have to fix it by yourself. My guess is you have to add some libs to classpath.
2. If you face any error please try to split your issue into smaller ones. 
In you example you have to check if your script can be executed (without proxy, conversion, etc). 
If it fails with taurus you need to try to start it by regular selenium way (without bzt).

---
Taras

Gayathri Budati

unread,
Oct 16, 2020, 11:33:03 AM10/16/20
to codename-taurus

Hi,

I am facing similar issue. I have added the the necessary library files to classpath and tried to run with bzt.
Has the original requestor of this ticket had any success with running the cucumber framework test cases through Taurus? If yes could you be able to share the steps to make it run?

Thanks & Regards,
Gayathri!
Reply all
Reply to author
Forward
0 new messages