This post will discuss how to read and write csv data using Rust and the csv crate. We are aiming this at testers who are trying to do useful things with Rust just like us at Qxf2. The two most common operations a tester working with csv would like to do are: reading csv data and dynamically creating csv data. […]
Read and Write csv data using Rust
Combining Rust and Py03 with Python
Recently, Qxf2 has been transitioning to Rust and has been writing many blogs on various topics related to Rust. The main aim of these blogs is to document our progress. In this post, I am writing about how I used Py03/maturin tool to call a Rust library from Python. We have initiated a Rust-based project called “meme-generator” to generate attention-grabbing […]
Parameterize Tests in Rust: rstest
This post will discuss how to parameterize tests in Rust. Qxf2 likes the fact that Rust makes testing a first class citizen of the language. It provides a test runner out of the box. However, coming from Python land, we missed one feature – test parametrization. So went about looking for crates that could help. We have found rstest to […]
Rust Selenium Tests for Beginners
I created a repository of working examples for test automation on the web UI using the thirty-four crate. Beginners often have trouble finding good articles with fully working Rust code, especially professional testers who are learning the language along with UI automation. Therefore, I created something for this niche. If you are new to Rust testing and wondering how to […]
Automate Rust Lambda deploy using GitHub Actions
We are open-sourcing a GitHub Action that will let you deploy AWS Lambdas written in Rust. This helps us automate deploying Rust AWS Lambda functions using GitHub Actions. If you are interested in the implementation details of this GitHub Action, you can look at the source code here. You can also file issues in that repository to ask for any […]
How to use thirtyfour crate with Cucumber-rs: Part 1
This post shows how to set a webdriver instance produced by thirtyfour as a member of the World struct defined by Cucumber-rs. We hope to follow up with one more simple post on How to use thirtyfour crate with Cucumber-rs showing ways to write browser driven BDD test automation in Rust using thirtyfour and Cucumber-rs. Why bother writing browser automation […]
Error handling with Rust using delta-rs as an example
In this blog, I will explore the various ways to do handle and/or propagate errors with Rust. Qxf2 is transitioning to using Rust as our primary programming language. The Rust documentation is great and has a nice section on error handling and propagation. However, everytime we tried to implement some of those ideas in our day to day work, we […]
Implement PartialEq for a custom type in Rust
This post will show you a couple of ways to implement the PartialEq trait for a custom type in Rust. This is particularly useful for testers since we end up using the assert_eq! macro. A bit of background: Qxf2 has started adopting Rust as our primary language to write our tests and tools. The reasons for the shift from Python […]
Unresponsive function while creating new project in Rust
While working on a rust-based hackathon project at Qxf2, I encountered an unresponsive function when creating new project in Rust. Being a newbie in rust, I was unable to figure out the cause. I tried looking up the internet but could not find any suitable solutions. Hence, I thought of documenting the resolution to this issue so that anyone hitting […]
Decode an SQS message within a lambda using Rust
I recently wrote a lambda in Rust that needed me to decode an SQS message and use it within the lambda. This post will help fellow Rust newbies that are trying to decode an SQS message and use it within a lambda. The heart of this post is simply converting a string to a JSON – so please skip this […]