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»How to access dependencies from test class

    How to access dependencies from test class

    July 14, 2024

    I’m wondering what some other options are for accessing the test automation framework dependencies from my test classes.

    Right now I have a layered architecture:

    Framework layer (contains all shared code for accessing deployed services)
    Harness layer (builds the classes and dependencies within the framework. Ie handles DI)
    Test layer (controls the flow of the tests via the objects created in the harness)

    I’ve got a test base class in the harness layer that has access to the various API, database, and UI classes needed to run our tests. So using inheritance to provide access to these dependencies.

    A sample test class would look like:

    public class MyTestClass : TestBase
    {
    [Test]
    public void sample_test()
    {
    APIs.MyAPI.GetSampleEndpoint(); // APIs is an inherited field in test base
    }
    }

    I feel inheritance is the best way to go about the issue of dependencies within a test class. The downside is managing the wrapping class that the “APIs” field is attached to.

    Are there better options to go about managing a large list of dependencies in a clean way?

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleElectrifying Jackery deals slashes power station prices by over 40%!
    Next Article Selenium WebDriver document.getElementById instead of send_keys

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 17, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2024-47893 – VMware GPU Firmware Memory Disclosure

    May 17, 2025
    Leave A Reply Cancel Reply

    Hostinger

    Continue Reading

    Real-World Examples and Demo Scripts in Selenium Python Automation

    Development

    Register now for Sentry Launch Week!

    Development

    CocoaPods Vulnerabilities Could Hit Apple, Microsoft, Facebook, TikTok, Snap and More

    Development

    The Significance of Universal Design for Learning in Education

    Development

    Highlights

    The best Hisense TVs: Expert Tested and reviewed

    April 3, 2025

    Hisense is known for budget and mid-range TV models, but there are high-end offerings for…

    Comparative Analysis of Personalized Voice Activity Detection Systems: Assessing Real-World Effectiveness

    June 20, 2024

    TEKEVER becomes the latest unicorn in Europe’s defencetech industry

    May 6, 2025

    The Healthcare Brand Persona

    June 24, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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