Author Archives: Siva Gollapalli

About Siva Gollapalli

Being a programmer is a huge possibility to learn

Pro tips for writing better rspec tests

Writing ‘good code’ is always a challenge for every project. Unfortunately, we always associate it with development and not tests. What about automation test code? Ever notice that you have write more automation code than the actual lines of development code?

Here are a few guidelines that I learned from my experience Continue reading

Advertisements
Posted in Ruby on Rails | Tagged | 12 Comments

Paypal payflow setup in rails

After long time of automation testing on rspec, recently I have started doing development. The initial task itself an interesting task – Paypal Payflow setup as a payment gateway for my rails application. Even though it took me three days … Continue reading

Posted in Ruby on Rails, Tutorials | Tagged , | 6 Comments

Upstart Scripts in Ubuntu

Upstart is an event based tool that handles starting of services during system booting and shut-down the services before system is shut down. It also monitors the services while they running. It was designed to overcome the limitations in system V … Continue reading

Posted in Tutorials | Tagged , | 11 Comments

Payment Gateway testing using webmock

Testing the payment gateway involves lots of scenarios like what should happen if exception is raised while doing payment. To test this scenario we have to call payment gateway API and take response. But herein lies a problem. The test … Continue reading

Posted in Ruby on Rails, Tutorials | Tagged , , , | Leave a comment

Stubbing Geo-location requests using webmock

Geo-location integration is common today for every web application. We have gems on hand, to integrate Geo-location to our application. With few steps of configuration we can Geo-code our attributes ie., user addresses. But testing Geo-coding integration takes much more … Continue reading

Posted in Ruby on Rails, Tutorials | Tagged , , , | 2 Comments

Testing social networks using capybara, cucumber-rails, selenium

Integration of social networks is very common in every application. We have many gems are available for doing integration. But testing this social integration is complicated task. Using capybara with cucumber we can easily test this similar to the normal … Continue reading

Posted in Ruby on Rails, Tutorials | Tagged , , , | 1 Comment

Ajax forms testing using capybara, cucumber-rails and selenium

Manual UI testing plays a crucial part in test life cycle. However doing the same UI testing on every other day will became tedious. By using cucumber with capybara we can transform these mundane tasks into some interesting learning. We … Continue reading

Posted in Ruby on Rails, Tutorials | Tagged , , | Leave a comment