Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 16, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 16, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 16, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 16, 2025

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025

      Minecraft licensing robbed us of this controversial NFL schedule release video

      May 16, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The power of generators

      May 16, 2025
      Recent

      The power of generators

      May 16, 2025

      Simplify Factory Associations with Laravel’s UseFactory Attribute

      May 16, 2025

      This Week in Laravel: React Native, PhpStorm Junie, and more

      May 16, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025
      Recent

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Test Automation for different user roles within an application – Selenium and C#

    Test Automation for different user roles within an application – Selenium and C#

    June 21, 2024

    I was a developer a long time ago and have been tasked with our teams automated testing with Selenium and C# for our web application;
    Our application has many roles a user can be; such as an admin, carrier, Power user, and such. Depending on what role you are assigned, determines what you have access to in the application.

    An admin has access to all pages, etc.
    A Carrier can only see buttons x and y; and can only see menu options A, B, and C for example

    A user is required to Authenticate.
    I am having trouble visualizing the best way to create my tests/user. Almost all automation tests will need to be run for each user role. (we actually have 4 or 5 different role types, each has different access to parts of the application)

    How would this be best handled? Anyone have some examples I can see (I am a visual learner)?

    I am not trying to test having multiple users logged in at once; I am trying to test given a persons admin settings in the application – when they log in and authenticate, it will take their login information, and get their role, then the app takes care of what they can and can’t have access to. (I am using a page object model as well)

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleGet code from email – java
    Next Article Getting Serenity HTML reports during execution

    Related Posts

    Machine Learning

    Salesforce AI Releases BLIP3-o: A Fully Open-Source Unified Multimodal Model Built with CLIP Embeddings and Flow Matching for Image Understanding and Generation

    May 16, 2025
    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 16, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    A tutorial on infinite canvas

    Development

    Building Robust ViewModels [SUBSCRIBER]

    How to add more eye candy to the GNOME desktop

    Development

    Sam Altman says “I don’t do Google searches anymore” — but admits ChatGPT won’t be Google’s killer

    News & Updates

    Highlights

    Development

    How to include automation framework jar file dependency in my maven pom.xml?

    November 12, 2024

    I want to include one .jar file which has classes of my core automation framework. I created a “lib” folder in my selenium project and then gave its path in the pom.xml dependency. This Jar file of framework is not a runnable jar. I exported the framework project as a jar and want to use its classes in my project.
    However, im not able to use any class/method from that jar(framework) in my test scripts. Am i doing something wrong.

    Cybercriminals Unleash Styx Stealer Malware Which Threatens to Steal Data from Millions

    August 21, 2024

    LLaSA-3B: A Llama 3.2B Fine-Tuned Text-to-Speech Model with Ultra-Realistic Audio, Emotional Expressiveness, and Multilingual Support

    January 25, 2025

    Get up to 50% off EcoFlow power stations with these great deals!

    February 6, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.