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

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 18, 2025

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

      May 18, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 18, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 18, 2025

      New Xbox games launching this week, from May 19 through May 25 — Onimusha 2 remaster arrives

      May 18, 2025

      5 ways you can plug the widening AI skills gap at your business

      May 18, 2025

      I need to see more from Lenovo’s most affordable gaming desktop, because this isn’t good enough

      May 18, 2025

      Gears of War: Reloaded — Release date, price, and everything you need to know

      May 18, 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

      YTConverter™ lets you download YouTube videos/audio cleanly via terminal — especially great for Termux users.

      May 18, 2025
      Recent

      YTConverter™ lets you download YouTube videos/audio cleanly via terminal — especially great for Termux users.

      May 18, 2025

      NodeSource N|Solid Runtime Release – May 2025: Performance, Stability & the Final Update for v18

      May 17, 2025

      Big Changes at Meteor Software: Our Next Chapter

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

      New Xbox games launching this week, from May 19 through May 25 — Onimusha 2 remaster arrives

      May 18, 2025
      Recent

      New Xbox games launching this week, from May 19 through May 25 — Onimusha 2 remaster arrives

      May 18, 2025

      Windows 11 KB5058411 install fails, File Explorer issues (May 2025 Update)

      May 18, 2025

      Microsoft Edge could integrate Phi-4 mini to enable “on device” AI on Windows 11

      May 18, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Operating Systems»Linux»Best Free and Open Source Alternatives to Google Analytics

    Best Free and Open Source Alternatives to Google Analytics

    April 1, 2025

    Google Analytics is an exceptional platform for both website and mobile app analytics. What are the best free and open source alternatives?

    The post Best Free and Open Source Alternatives to Google Analytics appeared first on LinuxLinks.

    Source: Read More

    Hostinger
    Facebook Twitter Reddit Email Copy Link
    Previous Articleserpl is a TUI to search and replace keywords
    Next Article Challenges in Selenium Automation Testing

    Related Posts

    News & Updates

    New Xbox games launching this week, from May 19 through May 25 — Onimusha 2 remaster arrives

    May 18, 2025
    Operating Systems

    Windows 11 KB5058411 install fails, File Explorer issues (May 2025 Update)

    May 18, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Learn Game Development with JavaScript and Kaplay

    Development

    It took 15 YEARS for Minecraft to let us craft this item, but it’s finally coming (plus new music and more)

    News & Updates

    Speech is More Than Words: Do Speech-to-Text Translation Systems Leverage Prosody?

    Development

    The best handheld console is $549.99 right now, and that’s for the Ryzen Z1 Extreme model

    Development

    Highlights

    Optimizing long-running playwright test

    May 6, 2024

    I have just completed my first two playwright tests, but I am not sure how to optimize them.
    The scenario is the following:

    I log in to the system with an administrative user.
    I create a new user and save the generated username and password using the following code:

    // copy username and password
    const username = await page.locator(‘#username0’).innerText();
    const password = await page.locator(‘#passwd0’).innerText();
    expect(username).not.toBeNull();
    expect(username).not.toBeUndefined();
    expect(password).not.toBeNull();
    expect(password).not.toBeUndefined();

    I log out the admin user.
    I log in the created user (using the const created above), accept the terms and conditions and answer 220 questions, saving a screenshot of every 20th question.

    for (let x = 1; x <= 220; x++) {
    if (x % 20 === 0) {
    await storeScreenshot(popupPage, testInfo, ‘test Q’ + x);
    }
    await popupPage.waitForLoadState();
    await popupPage.locator(user.selector).click();
    if (x % 20 === 0) {
    await storeScreenshot(popupPage, testInfo, ‘test Q’ + x + ‘ – selected’);
    }
    await popupPage.locator(‘#submitknap’).click();
    }

    I am very happy that this works, and it is even parameterized with a csv for testing different answer patterns.
    If any step in this fails, the whole case fails.
    Ideally the admin part is not necessary as a part of the test and is reusable, but creating a user IS something I want to have. I could create some static users and wipe them before running each test, but I like the dynamic approach of creating a user prior to logging it in. I also have some environments that are not easily reset.
    I am in doubt as to how I can split this test scenario up. Should I have the admin part as a helper function called by the testcase, or as a smaller testcase prior to calling the main testcase?
    Edit
    For a little perspective this test takes 3 minutes to complete. a complete run of 6 parameters in three browsers takes 16 minutes.

    I tried to replace my desktop with a phone for work – 5 frustrating lessons I learned

    February 6, 2025

    MoarTube: A Self-Hosted Decentralized YouTube Alternative

    August 6, 2024

    OpenAI Introduced Advanced Audio Models ‘gpt-4o-mini-tts’, ‘gpt-4o-transcribe’, and ‘gpt-4o-mini-transcribe’: Enhancing Real-Time Speech Synthesis and Transcription Capabilities for Developers

    March 22, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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