All Questions
Tagged with automated-tests ruby
239
questions
0
votes
0
answers
22
views
Cucumber integration to build scenarios using existent steps. Does it exist?
I started to use cucumber.io (with ruby) to test my api and website.
I want to have a tool where non-tech people can create their own test scenarios based on existent steps. Some web gui tool where ...
0
votes
0
answers
80
views
parse cucumber scenario outline into individual scenarios
I'm wanting to know the easiest way to parse through an existing scenario outline and break it into individual scenarios? I'm wanting to do this because certain scenario outlines have become too ...
0
votes
1
answer
28
views
I get "sqs-main.rb:42:in `<module:SqsTest>': undefined method `purge' for SqsTest:Module (NoMethodError)" , in Ruby
My code:
require 'aws-sdk'
module SqsTest
access_key_id = $access_key_id
secret_access_key=$secret_access_key
session_token = $session_token
sqs_client = Aws::SQS::Client.new(
...
0
votes
1
answer
67
views
Disabling mailcatcher commandline messages
When using mailcatcher for testing the sending of mails i use codeception and the codeception-mailcatcher-module.
Everything runs as a Github action and i trigger stuff like this:
php vendor/bin/...
0
votes
2
answers
81
views
How to run all examples except one in Ruby using Rspec
config.before(:example,) do
visit '/'
find('a[class=btn').click
fill_in 'username', with: $email
fill_in 'password', with: $password
find('input[class=btn]').click
end
I want to log ...
0
votes
1
answer
536
views
How to download file directly from blob URL?
I am looking to download a PDF directly from a blob URL using Ruby code. The URL appears like this:
blob:https://dev.myapp.com/ba853441-d1f7-4595-9227-1b0e445b188b
I am able to visit the link in a web ...
0
votes
0
answers
79
views
Read data from excel columns with Ruby and Capybara
I'm having a logic problem to read the information of each excel column.
Each information i need is in separate columns totaling 58 columns. each information in this is compared with a field on the ...
0
votes
2
answers
29
views
Ruby capybara autotests. It is not possible to click on certain button due that they all have same css
Page has multiple buttons.
I need to click first one, but they all have same class
one-employee__remove-btn
I could try xpath, but this kinda looks scary
/div[contains(@class,'one-employee__user')]/...
0
votes
3
answers
66
views
How to check multiples itens of an array?
everyone, I'm trying to check an information from every item of an array but I don't know how to do this for all the 4 items, first that's the standard response:
data: [{"optinId": "...
0
votes
1
answer
66
views
Problem with monitor resolution in Capybara object identification
When I run on a 15″ monitor, capybara is not able to click on a specific menu item, but when I run on a 29″ monitor, the test works perfectly.
How to adjust this in a way that the test runs regardless ...
0
votes
2
answers
94
views
Delete records Oracle before tests from Ruby, capybara and Cucumber. Please
does anyone have an example of how to remove the records from the table before starting or after finishing the tests?
My tests are working perfectly fine and all that remains is to automatically ...
0
votes
1
answer
99
views
Is it possible to test spam clicking submit button using Capybara in Rails?
I'm working on a large repo, and we have a bug that causes multiple accounts to be created when the form's submit button is spam clicked.
Is there any way to automate spam clicking using Capybara? I'...
0
votes
1
answer
106
views
Terminal execution shows .rb steps before .feature scenario steps
Description of Problem
I am having a "problem" while creating Cucumber automation with Ruby. My terminal is showing the .rb steps before the .feature scenario steps, which is really annoying ...
0
votes
0
answers
126
views
I can not to run feature.file from Rubymine
Can someone tell me where is my mistake?.
I'm trying to run the feature from Run but I haven't had success.
If I run via terminal it is possible. I've tried several ways but still succeeding.
:\...
0
votes
0
answers
37
views
Understanding the Framework of Automation with Ruby and Cucumber
Can someone explain or send me some material so I can understand the meaning of each directory in this structure?
specs = I understand
step_definitions = I understand
support\env = ...