
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Appium Rspec Setup provides a quick way to include both Rspec as a framework to define your tests against and an Appium-compatible library to let it reach through and drive the virtual device of your choice.
This gem only sets up Rspec for use with Appium on your app. In addition to this gem, you will need to have installed and set up the Appium application available here: http://appium.io/
Create a GemFile in your app's main directory and add the following line:
gem 'appium_rspec_setup'
Run bundle
.
From the command-line, navigate to the main directory for your app and run the following command:
setup_android
When prompted, enter your app's name and the platform (Android).
From the command-line, navigate to the main directory for your app and run the following command:
setup_ios
When prompted, enter your app's name.
The setup process should complete within a few seconds, adding the following files to your app's main directory:
Do NOT delete these files.
Add test files within your spec/ folder
Run tests from the command-line with the rspec
command.
Below is a sample file login_spec.rb for an Android app:
describe 'App Login' do
before(:all) do
Appium::Driver.new(desired_caps).start_driver
Appium.promote_appium_methods RSpec::Core::ExampleGroup
end
after(:all) do
driver_quit
end
describe 'user login' do
it 'should have two text fields' do
expect(id('login_email_address').nil?).to eq false
expect(id('login_password').nil?).to eq false
end
it 'should have a button' do
expect(id('login_button').nil?).to eq false
end
it 'should go to splash screen' do
id('login_email_address').send_keys('email')
id('login_password').send_keys('password')
id('login_button').click
expect(id('splash_layout').nil?).to eq false
end
end
end
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that appium_rspec_setup demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.