Navigation

    SOFTWARE TESTING

    • Register
    • Login
    • Search
    • Job Openings
    • Freelance Jobs
    • Companies
    • Conferences
    • Courses
    1. Home
    2. chanisef
    C
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    chanisef

    @chanisef

    1
    Reputation
    29868
    Posts
    3
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    chanisef Follow

    Best posts made by chanisef

    • How to get logs with failed tests from the server (pytest)?

      I want to pull logs from the server, if the test ended up with FAILED status, tell me please what the signature of a function or fixture should look like, which will be called after each test and have information about its status.

      I run the script like this

      py.test -s -vv -l --alluredir allure / main.py
      
      posted in Automated Testing
      C
      chanisef

    Latest posts made by chanisef

    • RE: Lenovo Tab P11 erased recovery mode, need to hard reset with computer

      If you find yourself in a situation where you follow the guide at https://unofficialtwrp.com/twrp-3-4-2-root-lenovo-tb-j606f/ only to find your Lenovo Android Device in a fastboot-only state, please use Lenovo rescue and smart assistant to flash stock recovery and the stock Android image to factory reset the tablet.

      You can download it at https://pcsupport.lenovo.com/us/en/downloads/ds101291

      posted in Mobile Testing
      C
      chanisef
    • How to make incoming text messages remind me every 2 minutes?

      Most notifications I get from my Android are not urgent. But Text messages (SMS) probably are.

      I would like my phone to not stop notifying me about Text messages until I finally acknowledge it.

      How can I do this?

      I'm running the latest "Pixel Experience" mod on a Pixel 4A.

      I'm willing to use any app that can do this for me.

      Thanks.

      posted in Mobile Testing
      C
      chanisef
    • RE: Control playback using headset media buttons when using Android Select to Speak functionality

      You may be able to set up a custom accessibility service ( https://developer.android.com/guide/topics/ui/accessibility/service ) and listen for KEYCODE_MEDIA_PLAY_PAUSE using a background service ( https://stackoverflow.com/questions/21175914/determine-if-headphones-are-plugged-in-through-appwidgetprovider-pause-music-wh ).

      Then, as you described, the custom accessibility service could detect that you've short-pressed (KEYCODE_MEDIA_PLAY_PAUSE) or long-pressed (KEYCODE_VOICE_ASSIST) the button on your headphones.

      posted in Mobile Testing
      C
      chanisef
    • How do I turn on Carrier Location Services?

      I have found a similar question about this, and it kind of makes me wonder what this service is. In the description it says you can turn it on and off in the apps if you look for Carrier Location Services. Now I had the request pop up after I updated to android 12. And after I denied the request on reflex I changed my mind and it seems like the app doesn't exist. Not even in the app store. What is that all about? https://youtu.be/SLKc2DLNi4k Not my video, but it shows the pop up and the text if you click on it.

      posted in Mobile Testing
      C
      chanisef
    • Hide "VPN Active" persisting notification in Android 12

      I use VPN 24*7. Earlier I used to be able to hide "VPN active" notification but since I upgraded to Android 12, the option is not there anymore.

      What should I do to hide the notification?

      posted in Mobile Testing
      C
      chanisef
    • RE: recovering contacts from apk file

      After mucking around a bit, I have been able to get enough information to reconstruct my contacts information. Thank you to @Izzy for pointing it out to me.

      I obtained my ContactsProvider.apk from my backup and also data.tar.gz and device_protected_files.tar.gz.

      I then unzipped my ContactsProvider.apk using unzip ContactsProvide.apk and got:

      databases/  files/  shared_prefs/
      

      The databases

      calllog.db          contacts2.db  profile.db
      calllog.db-journal  profile.db-journal
      

      It would perhaps make sense that contacts2.db would have this information, so I looked into this sqlite3 file (as it is what I found below):

      $ file contacts2.db 
      contacts2.db: SQLite 3.x database, user version 1400, last written using SQLite version 3022000
      

      $ sqlite3 contacts2.db
      SQLite version 3.36.0 2021-06-18 18:36:39
      Enter ".help" for usage hints.
      sqlite> .tables
      _sync_state phone_lookup view_data_usage
      _sync_state_metadata photo_files view_entities
      accounts pre_authorized_uris view_groups
      agg_exceptions presence view_metadata_sync
      agg_presence properties view_metadata_sync_state
      android_metadata raw_contacts view_raw_contacts
      contacts search_index view_raw_entities
      data search_index_content view_stream_items
      data_usage_stat search_index_docsize view_v1_contact_methods
      default_directory search_index_segdir view_v1_extensions
      deleted_contacts search_index_segments view_v1_group_membership
      directories search_index_stat view_v1_groups
      groups settings view_v1_organizations
      metadata_sync status_updates view_v1_people
      metadata_sync_state stream_item_photos view_v1_phones
      mimetypes stream_items view_v1_photos
      name_lookup v1_settings visible_contacts
      nickname_lookup view_contacts
      packages view_data

      Carrying on with the above, I did the following:

      $sqlite contacts2.db
      sqlite> .separator , # to get the information in a CSV file with comma separation
      sqlite> .output raw_contacts.csv #Where to save the file
      sqlite> select * from raw_contacts; # Get it from raw_contacts in in the table above
      sqlite> .exit
      

      Then the file raw_contacts.csv has the information I want. There are several tables that have this information, and I just think that this one is fine from the ones I tried. Perhaps there are others that are better.

      posted in Mobile Testing
      C
      chanisef
    • RE: Looking for Javascript coding challenge Websites. Can you guys help?

      With a simple search on the internet you can get a bunch of such websites.

      Here are a few I found,

      https://www.freecodecamp.org/ - This one I'm also using to learn JS.

      https://www.java5cript.com/code-challenges

      https://www.jschallenger.com/

      https://javascript30.com/

      posted in Automated Testing
      C
      chanisef
    • Are there specific coding guidelines for test automation?

      Details

      Currently we are trying to find more ways to write better code. Of course, this does not exclude our automated test cases. We are already testing in the dev environment with SonarCube and WhiteSource to find possible errors in branches or in the master source.

      Task:

      We also want to implement code quality guidelines for the test.

      Question:

      • What are the code quality guidelines for testing?
      • Do they differ from the general code quality rules for Java/Python?
      posted in Automated Testing
      C
      chanisef
    • Button element found but click() action not performed

      I am trying to verify close button using selenium java page object model. Close button is located in a pop up window. Below is the html code for the button.

      This is my function to check the close button

      public DataDetailViewPage validateCloseDetailPopup() {

        //find close button
        closePopUp = driver.findElement(By.cssSelector("button[type='button']"));
      

      //click button
      JavascriptExecutor js = (JavascriptExecutor)driver;
      js.executeScript("arguments[0].click()", closePopUp);

      //details pop up that visible after closing the detail card detailsPopup =
      driver.findElement(By.
      cssSelector("div[class='text-center justify-content-center']"));

      //click close button
      //closePopUp.click();

      //check if details pop up is present after closing the detail card
      Assert.assertTrue(detailsPopup.isDisplayed());

      //return new object of DataDetailViewPage
      return new DataDetailViewPage();
      }

      When I execute this function button click is not happening. I have not added a thread sleep since I perform other actions before clicking close. There are not any compilation issues as well.

      How can I click the close button?

      posted in Automated Testing
      C
      chanisef
    • RE: log steps of the tests in Ide Intelij

      If you're just learning, and it's java or similar, something like System.out.println("mesg"); for regular outputs,

      for more on the output channels and their use maybe look here https://stackoverflow.com/questions/3163399/difference-between-system-out-println-and-system-err-println

      You may also want to look at the IDE's debugging features, and step through logic where you can inspect all sorts of things about the state at each step.

      I would guess some time invested in some coding course(s) and review of the IDE features would be beneficial...

      posted in Automated Testing
      C
      chanisef