Hello,
Here are the informations you need :
Version of smartGWT : 3.0
Version of maven-gwt-plugin : 2.4.0
Browser involved : All (using HtmlUnit emulating Firefox)
Here is my problem : I want to unit test a huge application using Selenium. The fact is that I want to test only the client side (the server side has already a 80% test coverage). I'm actually using maven.
It's not a problem of code, I understand how to unit test the application, the concepts are quite simple. Only one problem remains :
How am I supposed to find the widget I want to interract with ?
The IDs are generated automatically, and ensureDebugId() doesn't effect that. I tried to use the scLocators, but it gives me a beautiful error :
"scLocator could not be resolved as a type"
So is there a simple way to implement scLocators in Selenium (using maven) ?
I know there is something to do with the user-extensions.js you give in your package, but where am I supposed to define this path ? And how will I know if it as loaded ? (And ho Eclipse will know that scLocator is a known type ?)
Could you help me please ? I'm a trainee so I'm not an expert in Java...
Thanks a lot for your future answers,
Sorry for my english I'm not a native so it's quite bad hehe
-- Depado
Here are the informations you need :
Version of smartGWT : 3.0
Version of maven-gwt-plugin : 2.4.0
Browser involved : All (using HtmlUnit emulating Firefox)
Here is my problem : I want to unit test a huge application using Selenium. The fact is that I want to test only the client side (the server side has already a 80% test coverage). I'm actually using maven.
It's not a problem of code, I understand how to unit test the application, the concepts are quite simple. Only one problem remains :
How am I supposed to find the widget I want to interract with ?
The IDs are generated automatically, and ensureDebugId() doesn't effect that. I tried to use the scLocators, but it gives me a beautiful error :
"scLocator could not be resolved as a type"
So is there a simple way to implement scLocators in Selenium (using maven) ?
I know there is something to do with the user-extensions.js you give in your package, but where am I supposed to define this path ? And how will I know if it as loaded ? (And ho Eclipse will know that scLocator is a known type ?)
Could you help me please ? I'm a trainee so I'm not an expert in Java...
Thanks a lot for your future answers,
Sorry for my english I'm not a native so it's quite bad hehe
-- Depado
Comment