• This topic is empty.
Viewing 1 post (of 1 total) Forum home
  • Author
    Posts
  • #7559

    Offline nu înseamnă doar „nu merge netul”.
    Offline înseamnă control asupra stării rețelei și decizii clare în cod.
    Rețeaua o controlăm explicit, din ADB:

    adb shell svc wifi disable
    adb shell svc data disable

    Aplicația reacționează determinist:
    -ascultă schimbările de conectivitate
    -verifică acces real la internet
    -izolează starea offline
    -revine controlat în flow-ul corect:
    -utilizator autentificat → aplicație
    -utilizator neautentificat → onboarding
    Totul este susținut de:
    -cod sursă
    -loguri clare
    Asta este testare reală:
    rețea controlată + logică explicită + comportament previzibil.

    Apoi:
    adb shell svc wifi enable
    adb shell svc data enable

    ———————–
    How we properly test offline / online scenarios in a mobile application
    Offline does not mean only “the internet is not working”.
    Offline means control over the network state and clear decisions in code.
    We explicitly control the network via ADB:
    adb shell svc wifi disable
    adb shell svc data disable
    The application reacts deterministically:
    listens for connectivity changes
    checks for real internet access
    isolates the offline state
    resumes in the correct flow:
    authenticated user → application
    unauthenticated user → onboarding
    Everything is supported by:
    source code
    clear logs
    This is real testing:
    controlled network + explicit logic + predictable behavior.
    Then:
    adb shell svc wifi enable
    adb shell svc data enableno internet connection with source code no internet connection source code 2 source code working internet 2 working internet 3 working internet 4 working internet

Viewing 1 post (of 1 total) Forum home
  • You must be logged in to reply to this topic.