Running SSTTestCase on multiple browsers?
Hello,
I'm new to SST and and python too. I'd like to organise my tests as SSTTestCases, and execute them using sst-run using IE, Chrome and Firefox. However SSTTestCase uses FirefoxFactory() by default and issuing "sst-run testname -b Chrome" etc. wont help.
The above is possible of course if not using SSTTestCase, but I feel that overall readability suffers then.
from sst.actions import *
from sst import runtests
class Homepage(
def test_ubuntu_
go_to('http://
def test_google_
go_to('http://
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Leo Arias
- Solved:
- 2013-05-13
- Last query:
- 2013-05-13
- Last reply:
- 2013-05-10
|
#1 |
Hi Ari,
While using SSTTestCase, you can overwrite the default browser_factory setting the attribute on the test case.
Something like this should work: (I haven't tried it myself and I see we are missing the tests for the other factories, so please let us know if it works)
class Homepage(
browser_factory = runtests.
def test_ubuntu_
go_to('http://
def test_google_
go_to('http://
Now, as you'd like to run them in multiple browsers, you could use https:/
Ari (arzzka) said : | #2 |
Hi, thanks for answering. The factories work, I tried Firefox, Chrome and IE. Thank you also for the tip regarding testscenarios, with that I was able to create different test suites for different browsers.
Ari (arzzka) said : | #3 |
Thanks Leo Arias, that solved my question.