I have not one, not two, not even three, but 𝐟𝐨𝐮𝐫 new automation frameworks that I've recently added to my GitHub portfolio 🙃 It might be cheating because they're all API testing frameworks testing the same site, RESTful Booker (look it up if you want an API to test, it's great!) But nonetheless, here are the four frameworks: - Postman, integrated with GitHub Actions - Playwright with TypeScript - Cypress with JavaScript - Python, using Pytest and Requests I'll be posting about one of them each day this week, just to spread it out a bit First up is Postman, check it out here: https://lnkd.in/e3Y_afYB Postman is generally the de facto API testing tool for most. I've heard there's a bit of animosity building up for it recently, so I'll be trying out Bruno, an open-source alternative, very soon (watch this space!) But essentially, I built a collection with all my API tests in Postman, including validation using scripts and environment variables to store thing like the baseUrl and bearer tokens, then I used Postman's GitHub integration to sync everything across I also added a GitHub Actions workflow file to run all the tests on every push, and you can see a badge with the workflow status on the README Things left to do: - Add a proper README - Add a separate file with test cases - Try out Bruno as an alternative to Postman - Try some more complex API testing sites
Qasim Mahmood’s Post
More Relevant Posts
-
📌 I am excited to share My Second Test Automation Project Using Selenium WebDriver ✒️ Project Name: Let's Shop ✅ Used Technologies: java OOP - Selenium - Maven TestNG -POM- Allure Report -Data Driven To Read Data FromJsonDataReader - Cucumber- Chrome Headless ✅The Design of Project Used: (POM) Page Object Model design pattern 🌐Code In Github:
GitHub - khallafo/Shop
github.com
To view or add a comment, sign in
-
Hello Guys !! Just finished learning the "Basics of Jest for Effective Unit Testing" and would like to share what all i understood . Hope it helps ! In today’s software development landscape, testing is crucial for maintaining code quality and preventing bugs from making it into production. Jest is a popular JavaScript testing framework, often used with React but powerful enough for testing general JavaScript applications. Below are some fundamental aspects of Jest and how to leverage it for robust unit testing. Jest matchers are functions that compare the output of a function to an expected value, making tests easier to read and maintain. Here are some common matchers: 1. toBe: Used for primitive values. 2. toEqual: Used for comparing objects and arrays. 3. toBeFalsy and toBeTruthy: Check for falsy or truthy values. 4. toThrow: Tests if a function throws an error. 5. toBeTruthy : Used for truthy values like true, 1, "0", "false", [], {} and many more . Handling Asynchronous Code: Testing asynchronous code can be challenging, but Jest provides several methods: 1. Callback-Based Tests 2. Promise-Based Tests 3. Async/Await Mocking Functions and Spying: Mocks and spies are incredibly helpful in isolating units of code. They allow testing of a function’s behavior without executing the actual implementation. 1. Mock Functions 2. Spies Key Benefits of Using Jest: 1. Zero Configuration: Jest works out of the box with little to no configuration. Snapshot Testing: Ideal for testing UI components. 2. Isolated Tests: Each test runs independently, providing reliable and consistent results. This is the Github repo link where you can see the code with example . It is quite simplified and well documented :
GitHub - shubh1909/jest-basics
github.com
To view or add a comment, sign in
-
🚀 Master Decimal Precision with toFixed() in JavaScript! 🚀 I've just uploaded my detailed notes and practice files on controlling the length of decimals using toFixed() in JavaScript to my GitHub repository. These resources are designed to help you manage and format decimal precision effectively using the toFixed() method. 🌟 What's Inside? Comprehensive Notes: Clear explanations on how to use the toFixed() method to control decimal precision. Practice Files: Hands-on exercises to practice formatting decimals in various scenarios using toFixed(). Example Projects: Real-world examples demonstrating the use of toFixed() in action. 📈 Why Check It Out? Free Access: Available to everyone, from beginners to experienced developers. Collaborative Learning: Contributions and feedback are welcome. Regular Updates: Continuously adding new content to keep you current. 🔗 Start Learning Now! Explore the repository here: https://lnkd.in/gUiaNQuZ Feel free to fork, star, and share with your network. Let’s enhance our JavaScript skills together! 🌐 #GitHub #JavaScript #DecimalPrecision #toFixed #FormattingDecimals #LearningResources #PracticeFiles #Coding #Programming #SkillDevelopment #TechCommunity #ContinuousLearning #OpenSource #GitHubRepo #Education #LearningJourney #TechSkills
GitHub - Kashif1122666/controling_length-of-decimal-js
github.com
To view or add a comment, sign in
-
This is a JavaScript Learning Repo. This help you start from the basics to the advanced concepts of JS. Here you will find a well documented structure based on topics. If you are looking for a good video tutorial where you can learn JS then I would suggest Chai Aur Code by Hitesh Choudhary https://lnkd.in/gwwDDRgY
GitHub - FebinAugustine/Javascript-LearningDocs
github.com
To view or add a comment, sign in
-
🚀 Exciting News! 🚀 I am thrilled to announce the launch of my first GitHub repository! 🎉 I have been working on test automation for https://lnkd.in/diHrDgpS using IntelliJ and Selenium WebDriver. This project has been an incredible learning journey, and I am excited to share my progress with you all. In this repository, I focused on handling automation tests for various web elements and functionalities, including: JavaScript Delays, Form Fields, Popups, Sliders, Calendars, Modals, Tables, Window Operations, Hover Effects, Ads, Gestures, File Downloads, Click Events, Spinners, File Uploads, Iframes, Broken Images, Broken Links and Accordions. Check out my repository here: https://lnkd.in/d55mzCm9 and feel free to explore, provide feedback, and contribute! This is just the beginning, and I look forward to continuing my journey in test automation and sharing more projects with you in the future. #TestAutomation #SeleniumWebDriver #IntelliJ #GitHub #JavaScript #Testing #QualityAssurance #LearningJourney
GitHub - DarkoIvanovski/PracticeAutomationTests
github.com
To view or add a comment, sign in
-
Recently, I had the chance and time to try out something new to see the recent state of test automation tooling. There are several articles and posts about saying different test frameworks be the best or better compare to other. Not a secret, I have used Selenium (and Selenide) for a long time and I am happy with their capabilities. But no engineer has the luxury to just stick with the good old way. We need to stick up-to-date about the different recent alternatives as well. This time I had a little play with Playwright, with its Java implementation and JUnit 5 under the hood. It was interesting. Compare to Selenium, Playwright has a different architecture with more layers which can be a bit tricky if you want to do parallel test execution. But from speed wise, I need to say it was much faster! My main take away is that still there is nothing new under the sun. If you follow the best practices like clean coding, using design patterns and creating/improving your test automation solution based on actual requirements and feedback, ANY test framework can be a good choice to reach your optimal solution. Don't follow others blindly (including me as well), because they say that a tool is better. It is subjective and project dependent, which work for others might not work for you too. Use your experience and knowledge to decide what you need to use and improve it step by step. My little sandbox project can be found here: https://lnkd.in/gjsR6Vfj #testautomation #playwright #selenium #selenide #lessonslearned
GitHub - GregBaggings/PlaywrightPlayground
github.com
To view or add a comment, sign in
-
Today I have learnt about mocks and spies as used in Javascript. It is an Important concept to know in Unit Testing. To Learn More, check out my github at https://lnkd.in/dBCyUWXh . 🖐
GitHub - iankmani/Unit_testing
github.com
To view or add a comment, sign in
-
Here is what I learnt in last week? As developers, we always seek efficiency, readability, and maintainability in our projects. That’s where tools like Concurrently, Prettier, and ESLint come into play! Let’s break down how they can level up your monorepo setup. 💡1️⃣ Concurrently: Running multiple scripts simultaneously? With a monorepo, you often need to start multiple services (e.g., frontend & backend). `concurrently` lets you run multiple npm scripts in parallel with one command, simplifying your workflow! concurrently "npm:dev:*" This runs all dev scripts defined in your monorepo packages! 🎯 2️⃣ Prettier: Keep your code beautiful and consistent across the entire project. It automatically formats your code based on predefined rules, ensuring uniformity, regardless of who writes it. 🧹 3️⃣ ESLint: Identify and fix problematic code with ease! Integrating ESLint helps maintain high code quality by enforcing best practices and catching errors early. 🔍 💡 Pro Tip: Add Prettier as an ESLint plugin so you can auto-fix style issues along with code linting! Implementation in a Monorepo: - Install packages: npm install concurrently prettier eslint -D - Create `.eslintrc.json` & `.prettierrc` in your root folder for unified config. - Use `concurrently` to run ESLint and Prettier checks together: concurrently "eslint . --fix" "prettier --write ." 💪 These tools ensure that your monorepo stays clean, error-free, and efficient, making collaboration seamless! 💻 https://lnkd.in/gCUSN5Re #DevTools #Monorepo @WebDevelopment #JavaScript #CodingTips #DeveloperProductivity @devtools @monorepo WebDevelopment JavaScript Developer@developerproductivity
GitHub - ParthasarathiMahana/EmployeeManagementSystem
github.com
To view or add a comment, sign in
-
Coding challenge 2 from the Coding Challenges. Build your own JSON parser. Here is my solution to the challenge using JavaScript language. The goal of these challenges for me is not to write the perfect code/project that can replace the existing one, but to learn and develop skills. It was an interesting challenge. I started to understand the JSON file format better.
GitHub - nlazyan/coding-challenges
github.com
To view or add a comment, sign in
-
https://lnkd.in/dQXek9GX A binary calculator that was created using HTML, CSS, and JavaScript as the final problem from Hackerrank's 10 Days of JavaScript challenge (hence the new golden JavaScript badge on my cover) #hackerrank #html #css #javascript #js #frontend #programming
GitHub - AAK581/Binary-Calculator
github.com
To view or add a comment, sign in