I am trying to test a lettuce/python test script with selenium on SauceLabs. I'm quite new to testing, in general, but know some python. The feature file is a simple go to url and see that a text exists. It passes for one platform/browser defined in desired_capabilites, but I want the one feature to enumerate through various platforms to test and close each one.
browsers = [
{"platform": "Windows 8.1",
"version": "11",
"browserName": "Internet Explorer",
"name": "Windows 8.1 IE"},
{"platform": "Linux",
"version": "4.4",
"browserName": "Android",
"deviceName": "Google Nexus 7 HD Emulator",
"name": "Android Chrome Nexus"},
{"platform": "Linux",
"version": "4.4",
"browserName": "Android",
"deviceName": "Android Emulator",
"name": "Android Chrome Emulator"},
{"platform": "OS X 10.9",
"version": "7.1",
"browserName": "iPhone",
"name": "iOS Safari"},
{"platform": "OS X 10.10",
"version": "37",
"browserName": "chrome",
"name": "OSX Chrome"},
{"platform": "Windows 7",
"version": "3.0",
"browserName": "Firefox",
"name": "Windows 7 Firefox"},
]
How can I set this up in the terrain.py using the @before.all decorator for the browser setup but have each platform test the features close and open the new platform? Does this make sense?