Ask a Question

Can we add Selenium unit tests written in javascript ?

varun_masuraha
Contributor

Can we add Selenium unit tests written in javascript ?

Hey,

 

As TestComplete has limitations with SVG graphs, we wrote a Selenium script in PyUnit & invoked it from TestComplete, which worked pretty well.

 

But we have been using javascript in TestComplete & want to maintain only one language in framework, as much as possible.

I understand that JUnit can't be used with javascript.

Is there any way we can add unit tests for Selenium written in javascript ??

 

regards,

Varun

2 REPLIES 2
TanyaYatskovska
SmartBear Alumni (Retired)

Hi Varun_masuraha,

 

If you have the PyUnit test prepared, you can simply call it from TestComplete. You need to specify some additional settings like it’s listed here: PyUnit Testing Support ( http://smartbear.com/viewarticle/74333/ )

 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



Hey Tanya,

Python scripts already worked well. We want to run javasricpt tests. Any idea for that ?
One way I think is using Selenium remote server tests (in js), instead of webdriver. Didn't try though.

Thanks,
Varun
cancel
Showing results for 
Search instead for 
Did you mean: