Can Anyone help me how to run bdd testcases in sauce lab

11 views
Skip to first unread message

Ritesh Gupta

unread,
Sep 1, 2021, 12:42:53 PM9/1/21
to robotframework-users
Hello Below is my code,

Can anyone give the proper code if they have & tell me in which file can i put for run my testcases in saucelab in bdd framework.

 i put in webapp.py file
# saucelabs integration
  desired_cap = {
  'browserName': "chrome",
  'browserVersion': "latest",
  'platformName': "Windows 10",
  }  driver = webdriver.Remote(
   command_executor = 'https://*******',
  desired_capabilities=desired_cap) (edited) 

I m getting following error after run code :
"D:\python-selenium-bdd-master\test\framework\webapp.py", line 10
    desired_cap(): = {
IndentationError: unexpected indent

Regards,
Ritesh

Tatu Aalto

unread,
Sep 1, 2021, 1:11:11 PM9/1/21
to riteshk...@gmail.com, robotframework-users
Hi

It's hard to say for sure,  because it looks like at least spaces are lost in the copy paste. But based on the error message, it saying that your code is not valid Python. It's hard to say for sure wherethe error is,  because it looks like we are not seeing full code and alignment is lost. 

Most of the time using good IDE, like PyCharm, VS Code and so on, can lint your code automatically and show where the error exactly is.

-Tatu
Send from my mobile

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/robotframework-users/c7f2306a-0f16-465e-b2b5-d4054ef68c36n%40googlegroups.com.

Ritesh Gupta

unread,
Sep 1, 2021, 1:16:27 PM9/1/21
to Tatu Aalto, robotframework-users
Thanks, I'll check it out.

Ritesh Gupta

unread,
Sep 1, 2021, 1:27:18 PM9/1/21
to Tatu Aalto, robotframework-users
Thanks Tatu,

Can u share me the sauce lab code Means Capabilities  so I will configured in my script,it helps for me.

Thanks in Advance.

Tatu Aalto

unread,
Sep 1, 2021, 1:35:00 PM9/1/21
to Ritesh Gupta, robotframework-users
Hi

I do not use SauceLabs, but by have you seen this: https://docs.saucelabs.com/dev/test-configuration-options/index.html

-Tatu

Ritesh Gupta

unread,
Sep 1, 2021, 1:36:56 PM9/1/21
to Tatu Aalto, robotframework-users
Cool, thanks!
Reply all
Reply to author
Forward
0 new messages