17 December 2020 - John van Arkelen
In Tosca, modules are created by scanning the Application Under Test (AUT), so that all needed objects on screen (e.g. textboxes, links, tables, buttons, etc.) are added to the module. The module can then be added to a test case so it can be executed. This method already ensures that any maintenance will be done in one place only, because a certain module can be used in many test cases, but any changes to the module is automatically applied to all test cases where the module is used.
However, the way modules are created can still be improved to ensure that maintenance is needed even less and when it is needed that it can be easier to do. In this article I will explain why this is important and how to achieve this.
13 December 2020 - John van Arkelen
Almost any web application needs to send transactional emails to users of the application at some point. Instead of setting up your own mail server, many applications use a dedicated email service for this, like Sendgrid, Mailgun or Postmark. The main benefit is that the application can just send emails and the service takes care of the delivery. This sounds easy, but these days having your emails delivered reliable and quickly is surprisingly complicated due to all measures taken by email providers to fight spam and phishing.
I always use the excellent Postmark for sending transactional emails, because the experience for a developer is great, with good documentation and fast support. Another benefit is that Postmark has an API you can use to send or read emails. But most importantly: they deliver the emails reliable and quick.
In this article I explain how to setup Postmark, add custom metatags to emails and use the Postmark API to show tagged emails in a Rails application.