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

how to debug lettuce tests in pycharm

I am new to lettuce framework and trying to find answer on how to debug lettuce tests ? Is it possible ? I found that PyCharm Professional Edition has BDD support. I have got some existing tests written in lettuce. Can I debug them if I have got…
0
votes
1 answer

Lettuce BDD - Values in scenario defined in config file

I'm pretty new to BDD and Lettuce and I cam across an issue which I'm not sure how best to handle. I want to create a Lettuce test suite which I can then run against different environments, where some parameters in the scenario would be different…
arie
  • 782
  • 3
  • 13
  • 31
0
votes
2 answers

Integration Tests using Lettuce & Salad Fail After Upgrading Django to 1.8.9

I recently upgraded Django from 1.6.11 to 1.8.9, and all of our integration tests are failing. All of these tests passed in 1.16.11. Some examples of errors I get are: And I should see "Announcements" somewhere in the page within 5 seconds …
Julie Qiu
  • 59
  • 5
0
votes
1 answer

Key Error sure.AssertionBuilder object at

After pulling with rebase changes from VCS I am getting a Key Error when trying to run my Aloe_Django(porting from Lettuce) tests. Before it was working fine, now we can not figure out what we did wrong. The Error is KeyError:<…
0
votes
2 answers

In Lettuce(4.x) for Redis how to reduce round trips and use output of one command as input for another command, especially for Georadius

I have seen this pass results to another command in redis and using via command line this command works well : src/redis-cli keys '*' | xargs src/redis-cli mget However how can we achieve the same effect via Lettuce (i started trying out…
R K Punjal
  • 1,445
  • 1
  • 15
  • 20
0
votes
1 answer

Lettuce BDD from Mac OSX terminal

I've been working through the Lettuce tutorial (Lettuce Tutorial) to get BDD and Pyton to work together, all is in place. The problem is I cannot run lettuce through my Mac OSX terminal, the tutorial shows lettuce specifying the test path and…
Carl Bruiners
  • 87
  • 3
  • 11
0
votes
1 answer

How to use Lettuce for REST API testing?

I have been learning for a couple of hours how to test python code with Lettuce. I would also like to test Django applications for REST requests and responses with URLs. Can I achieve this with Lettuce? Lettuce home page: lettuce.it
forkfork
  • 415
  • 6
  • 22
0
votes
1 answer

Django BDD testing with aloe, get absolute URL

I'm doing BDD testing with Django-Aloe, To make things fast the tests runs in threads and for each thread there is a different port. I can't seem to find a way to access the absolute URL. in lettuce I had this: from lettuce.django import…
elad silver
  • 9,222
  • 4
  • 43
  • 67
0
votes
1 answer

How to invoke Geo commands with Lettuce's and Redis asynchronously

I am trying to use lettuce in order to add geolocations to Redis. I managed to do it using the sync methods. Is it possible to convert this logic using the async api for lettue? sync code: StatefulRedisConnection connection=…
rayman
  • 20,786
  • 45
  • 148
  • 246
0
votes
1 answer

How can i keep my database clean between my scenarios?

I have two scenarios that create a record in a database. Let's say I'm creating a user with foo@bar.com. Scenario 1: Given I have an user with email foo@bar.com Scenario 2: Given I have an user with email foo@bar.com Scenario 2 is raising an error…
Mirat Can Bayrak
  • 631
  • 7
  • 18
0
votes
1 answer

Step in Python Lettuce. Is it possible to prepend step.hashes headers in step code?

Currently I'm writting some integration tests in Python Lettuce. I want to create a generic step for some XML's comparision. I know that in .feature file after step definition like Scenario: I want to compare XML's... ... And I check generated…
paulluap
  • 1
  • 1
0
votes
1 answer

How to implement a scenario outline in lettuce using pycharm

I have the following feature: Feature: Check if the weather service works properly In order to check the weather service As beginner I'll get some values and check if they are ok and if the temperature given is correct Scenario: Check if a city and…
SomeAnonymousPerson
  • 3,173
  • 1
  • 21
  • 22
0
votes
1 answer

Lettuce Profiles

Cucumber lets you define profiles in a cucumber.yml file - which are essentially command line arguments that can be reused. Does anyone know if it's possible to accomplish the same with lettuce? And if so, how?
klementtt
  • 83
  • 1
  • 6
0
votes
1 answer

Lettuce BDD: How to add 'Examples:' block in step.behave_as?

Environment: lettuce-0.2.23-py2.7 on Windows 8 For simple scenario (example from Lettuce documentation) everything works: @step('I am logged in') def is_logged_in(step): step.behave_as(""" Given I go to the home page And I…
pbaranski
  • 22,778
  • 19
  • 100
  • 117
0
votes
1 answer

Django Lettuce built-in server 500 response

I am running the Lettuce built-in server to test that it returns a given reponse however, it shows a 500 response. My features file: Feature: home page loads Scenario: Check that home page loads with header Given I access the home url then…
zurik
  • 491
  • 1
  • 8
  • 21
1 2 3
25
26