Questions tagged [python-behave]
Behave is a BDD framework for Python, based on the Cucumber Framework.
python-behave
529
questions
0
votes
0
answers
9
views
For Behave step files, can I force the default matcher strategy if the file has no ‘use_step_matcher’ statement?
I’m working on a test automation project that uses the Behave framework. There are ~100 step files in the ‘features/steps’ folder.
I have created a new step file with the project’s first use of the “...
0
votes
0
answers
19
views
Selenium verision 4 using python behave to connect SeeTest
I am trying to run my desktop browser tests on seetest, I am using selenium 4 which has no desired capabilities but it uses 'options' however I tried multiple syntax but no use.. tests still connects ...
2
votes
0
answers
65
views
How can I ensure some code is run even if a test suite is aborted?
I have a Behave test suite that starts by spinning up my application in a Docker container. I've added some code using atexit to ensure that the container is stopped and removed when the suite exits '...
0
votes
0
answers
14
views
Assertion error thrown when code converted from Scenario to Scenario Outline
Issue: Scenario Outline parameterization
Tech: python, behave
I run the test changing the username (in the feature file) to “”, or “username” , none of them made a difference. It just throws the ...
-1
votes
1
answer
21
views
Chaining async tests in Cucumber
I'd like to write a series of Cucumber tests to verify connecting and provisioning a BLE device. Each step is inherently asynchronous (discovery, connection, verification of characteristics, etc), ...
0
votes
0
answers
37
views
Headless automation is possible for desktop or native applications using WinAppDriver?
GUI sendkeys are not working (unable to find elements) if we lock the system, even win+R not working. Any solutions to do headless for behave framework?
Tried with PSEXEC triggering the script on the ...
0
votes
0
answers
8
views
Using an external resource as the source of table data in python-behave
Consider the following feature test for Behave:
Feature: Student
Scenario Outline: New
Given User <cn> created in YAML
Then Verify cn matches "<cn>"
Then Verify ...
0
votes
2
answers
79
views
Path differs while getting current working directory for local and pipeline
Actually, I've developed a python project using behave framework to automate a solution and pushed it to a repo so that it can be executed using pipeline in agent machine, the paths are getting ...
0
votes
1
answer
33
views
Writing custom behavex json parser to allure2 format
I'm using behaveX plugin on top of behave framework in order to speed up my tests.
However I would like to parse the results into allure format which is more convinient.
I wrote my own custom json ...
0
votes
1
answer
54
views
Chrome is quickly closing after I run this automation code using Python Behave Selenium webdriver
Whenever I run my code, the chrome opens and quickly closes, I observed the chrome browser and when it opens it does not even go the the URL link, it opens and then quickly closes for like a milli-...
0
votes
1
answer
63
views
How to access environmental variables when executing a python-behave test?
I am trying to set up a behave test for my app and I need to access many different environmental variables during the execution.
For example, I have code that checks if the ENVIRONMENT is local, dev ...
0
votes
0
answers
40
views
Python automation - Connection establishment with selenium server is failing
I have created a docker compose file to create the containers for Selenium, chromedriver and python behave(framework),
version: '3'
services:
selenium:
image: selenium/standalone-chrome:latest
...
-1
votes
1
answer
175
views
Running behave/selenium in a Docker Container
I have built a Docker container, from which to run behave/selenium tests.
The Docker image is based on Oracle Linux 9, and it includes:
/bdds/driver/chromedriver --version
ChromeDriver 114.0.5735.90 (...
1
vote
1
answer
85
views
Allure report stuck with a loading spinner after launching index.html from generated report
I've used the below code to generate the allure report, but after generation when I launch the index.html file it keeps on loading. But when I use serve command and launch it, the proper report gets ...
-1
votes
1
answer
139
views
allure-behave : The term 'allure-behave' is not recognized as the name of a cmdlet, function, script file, or operable program
I created new (virt_env) and installed allure-behave by using command: pip install allure-behave.
To verify it installed I use pip list command:
When I run my automation tests I see allure-results ...