Questions tagged [lettuce]

Lettuce can stand for two things: * A behavior-driven development (BDD) tool for Python: http://lettuce.it/ * A Redis client for Java: http://lettuce.io

Lettuce can stand for two things:

389 questions
0
votes
1 answer

Lettuce/Selenium removing newly created DOM elements

Scenario Given I navigate to the table menu When I click the "Add" button And I fill "First name" with "Bob" And I fill "Last name" with "Dylan" And I click the "Create" button Then I should see a new entry with a name of "Bob Dylan" Step…
Ben Crowhurst
  • 8,204
  • 6
  • 48
  • 78
0
votes
1 answer

Lettuce django integration

I have an issue with Lettuce + Django + Splinter. Lettuce does not seem to be able to pick up changes to the database. Below, create_user and create_post generate and save a user and a few post models. However when splinter opens the browser - there…
Ruslan Osipov
  • 5,655
  • 4
  • 29
  • 44
0
votes
1 answer

"Feature Background" or "Feature Steps" in lettuce?

I'm looking for a way in lettuce to specify code to run from my Gherkin feature file such that it has already run when I get to the @before.each_scenario hook - this is essentially to do a dynamic set of examples for a scenario outline, so given an…
theheadofabroom
  • 20,639
  • 5
  • 33
  • 65
0
votes
1 answer

Lettuce test with django and selenium no run on windows

I have a lettuce test suite using selenium and everything works just fine on linux. After I installed django and everything that's needed on windows to test the suite on IE8,9 too, and I tried to run the test, it only opens my browser and says that…
flolancer
  • 1
  • 1
0
votes
1 answer

Wait for a response during a feature test using lettuce+splinter and django

Short story: I am writing a feature test for a django app using lettuce and splinter. The scenario fails due to some lack of sync at the step calls. The question: Is there a way to prevent this error from happening wihtout adding an artificial…
Felipe
  • 440
  • 3
  • 18
0
votes
2 answers

How do I handle dependencies between scenarios in Lettuce?

I like using Lettuce to define test cases. In many cases, it's easy to write Lettuce scenarios in such a way that they can be run either atomically or as part of other scenarios in a feature. However, I find that Lettuce is also a useful tool to try…
Geoffrey Hing
  • 1,575
  • 2
  • 15
  • 22
0
votes
1 answer

How to use loop in splinter and lettuce test?

I want to ask whether it is possible to use for-loop or while-loop together with splinter and lettuce BBD test. One of my scenario is that: I want to loop a table and change each entry status until all entries status are changed. I can change one…
susanna
  • 1,395
  • 3
  • 20
  • 32
0
votes
1 answer

Lettuce: Continue testing after an assertion

How can I continue testing after a test fails? Feature: some feature Scenario Outline: some scenario outline Given I prepare everything Then there is a test that could fail And some other test I still want to run I want "some other…
user1680104
  • 8,437
  • 4
  • 22
  • 27
0
votes
2 answers

Lettuce and strange characters

I tried to run Lettuce. Normally works, however when I used: lettuce | less there are a lot of color commands like: ESC[1;37m How to get rid of that when writing into file? For example cucumber prints nice colors in the console, and normal text in…
Szymon Lipiński
  • 27,098
  • 17
  • 75
  • 77
0
votes
1 answer

circular import landmines with Lettuce

I have 3 projects set up in PyDev that all have eachother in their project references list. for illustrative purposes: proj_f pack_foo mod_fooa (contains class Fooa) mod_foob (contains class Foob) mod_faa (contains class…
Silas Ray
  • 25,682
  • 5
  • 48
  • 63
-1
votes
1 answer

redis client list shows lots of cmd=auth

Several modules in my environment suddenly unable to connect to Redis today, the error message says either unable make connection to Redis or Reconnecting, last destination was xxx. I see lots of clients with cmd=auth when I check with "client…
James Yu
  • 399
  • 6
  • 22
-1
votes
1 answer

Is XClaim / claim supported in redis spring data - ReactiveRedisOperations.opsForStream()

To build a reliable message queue using redis streams, i am using spring-boot-starter-data-redis-reactive and lettuce dependency to process the messages from redis stream. Though i am able to add, read, ack and delete message through the api…
-1
votes
2 answers

How to have multiline step definitions calling other multiline step definitions

Attempting to call a multiline step definition from another multiline step definition. The lettuce.py website has little to say on the matter. @step( u'I create a "([^"]*)" with the definition:$' ) def i_create_a_resource_with_the_definition(…
Ben Crowhurst
  • 8,204
  • 6
  • 48
  • 78
1 2 3
25
26