Navigation

    SOFTWARE TESTING

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

    Posts made by rosemadder

    • RE: Android 9 device does not save network

      Let me answer my question per the suggestion of Andrew instead of deleting it.

      The solution I found:

      1. Tap Advanced options when adding a network
      2. Select Yes for Hidden network

      enter image description here

      I think I missed the saved network when I posted my question. The network was saved on this tablet but it was on a separate list at the bottom: enter image description here

      posted in Mobile Testing
      R
      rosemadder
    • Where in a smartphone with Android are deleted and cleaned the files that are visible when testing with "root integrity check"?

      Where in a smartphone with Android are deleted and cleaned the files that are visible when testing with "root integrity check" ?? Clearing the cache and user settings do not help, obviously something else needs to be deleted in memory ?? Where do I delete the files I see from in root integrity check? How does this work?

      posted in Mobile Testing
      R
      rosemadder
    • RE: Can you record video to external drive?

      Yes. The "Open Camera" free software app from the F-Droid store lets you select the directory to save files.

      I have just tried it with connecting a usb3 ssd with otg, and saved a video onto it.

      https://f-droid.org/en/packages/net.sourceforge.opencamera/

      posted in Mobile Testing
      R
      rosemadder
    • Getting value from data-value (webdriver selenium / java)

      I have the following HTML code

      08
      09

      I would like to extract the value of data-val="9" and assign it to a String variable.

      I tried

      driver.findElement(By.xpath("//div[@role='option']//*[@tabindex = '0']")).getText();
      

      and I am getting "Unable to locate element"

      Hope to have advice. Thanks

      posted in Automated Testing
      R
      rosemadder
    • RE: JMeter, how to assert a dynamic value, that contains special characters using response assertions

      If the value is "auto generated" what are you going to "assert" here?

      The presence of key property can be checked using https://jmeter.apache.org/usermanual/component_reference.html#JSON_Assertion or https://www.blazemeter.com/blog/the-jmeter-json-jmespath-extractor-andassertion-a-guide

      Going forward please consider including at least partial response and your Assertion setup as without being able to reproduce the issue we are not able to help as well

      posted in Automated Testing
      R
      rosemadder
    • RE: Exhaustive Resources on Concrete, Advanced test automation practices

      While I'm on the fence on closing vs keeping this questions open, I'll give it a go at a general answer.

      First, writing test automation is writing software. No one should tell you otherwise. So any book, course, etc that has a focus on writing software, architecting software, design patterns, etc, is valid and valuable when writing software testing frameworks! You can take those same concepts developers use and apply them to the testing side.

      For example, when writing Selenium frameworks, we often use POM - Page Object Model - which is a popular software design pattern. There is nothing inherent about this design pattern that says it's "for testing only". In fact, it's used by developers in the applications they create. You could also use MVC or MVVC design models when creating testing frameworks.

      I cannot find resources explaining how to handle/manage/structure tests.

      This is just code organization, which different design patterns attempt to explain. A clear rule of thumb is to "keep like things together." You can also just have a basic directory structure. Note, not all of these are needed; use what you need when you need it; this is also non-exhaustive.

      • /lib
      • /logs
      • /config
      • /reports
      • /helper
      • /fixtures
      • /factories
      • /specs (or tests)

      Under /specs, you can have:

      • /unit
      • /integration
      • /e2e
      • folders by feature, ecommerce example here can be: login, header, footer, checkout, search, pdp, cart (very POM oriented structure)

      Don't put all your tests in one file. Aim to write clean code that is also readable. I've seen spec files 1000+ lines long due to poor organizing. You can also separate out tests by tags in the spec file or even in separate files: positive, negative, sub-feature.

      Examples here can be:

      • featureName.positive.spec
      • featureName.negative.spec
      • featureName.subfeature.positive.spec
      • featureName.subfeature.negative.spec

      When it comes to the spec file, make sure that it's just about the test (assertion) and code that supports getting to that assertion. Any code you keep repeating is meant for a helper file, as a fixture, or as a Page Object (if you're doing UI tests). Keep your code DRY (don't repeat yourself) not WET (we enjoy typing)!

      Unit tests, Integration Tests, System Tests, ... Do I have a completely separated test system for each of these? If yes, how do I make sure to not forget to start up each of them after a change?

      Other ways to phrase it:

      • Do you keep all your tests in the same repository as the main application?
      • Do you only keep unit tests in the same repository as the main application?
      • Do you keep all your tests in a separate repository?

      Yes, to all. No, to all. It really depends on team structure. Running them via separate repos can be handled via a CI/CD system.

      How do you express the "functional dependency order" of tests?

      You don't. Tests should follow the FIRST principle. Plenty has been written about this including me on https://sqa.stackexchange.com/questions/49833/how-to-automatically-test-mobile-device-and-desktop-website-connections/49842 . In general, tests should follow an order, they should be independent of that.

      How do I express priorities for tests?

      A lot of test runners and test libraries have a tagging system. You can use that to target tests by tag, e.g. smoke tests, feature name, security test, etc

      How do I express that tests take only short time or a long time to test?

      Not sure there is an answer here. Is this question about writing tests? Running the tests? There is a different answer depending on which task.

      How do I express that tests have external dependencies?

      You don't. It's inherent to the type of testing. Unit tests usually don't have external dependencies. Integration tests usually do. Sometimes you can mock those external dependencies.

      How should I implement the same test with many different inputs?

      You can write one test that takes different values of inputs. Here, add() is the method you call in your spec file that should return a value that you assert against.

      add(1, 2)
      add(-1, -2)
      add(0, 0)
      

      Or, you create separate tests in your test library

      it "adds 2 positive numbers"
      it "adds 2 negative numbers"
      it "adds 2 floating point numbers"
      

      Or, you can store input values in a JSON object, array, CSV file, etc that just loops through those values in a single test.

      Many options. It's dependent on context.

      How do I handle database test? Do I build up and destroy a database server every time a test starts that needs the database? Do I use one huge test database containing all test data for all tests and use transactions and rollbacks? What I test code that finishes transaction? What if I'm working with a MySQL database?

      You should ideally have a separate testing environment with a test database ready for use. The testing environment should mirror what is in production. On a team, this is usually already setup for you, usually by a DevOps team. For proper e2e testing or CRUD like test, yes, do clean up your test. All testing libraries have beforeAll, beforeEach, afterAll, afterEach to setup and clean up the tests.

      How do I maintain all of the tests?

      Like any other software. You will change the tests over time. You will delete things. You will add things. It gets maintained just like your main application.

      Just to reiterate, most of what I'm describing here is NOT testing related. Its standard software architecture, design patterns, organizational principles, so any books and resources you find on those can be used when creating software tests, frameworks, infrastructure, etc.

      Would it be useful for someone to write about all these things from a testing/QA perspective? 100%, but not entirely necessary.

      posted in Automated Testing
      R
      rosemadder
    • RE: Regain access to (partly) locked phone

      Success. Even if I can't explain how/why. I took my phone and my muscle memory "remembered" the correct pattern. At first I was happy with that, of course, but then I realized that it was the pattern that I tried a dozen times in the last 2 days. I also wrote down all patterns that I tried and it was the very first!

      How come it suddenly worked? Now knowing the pattern I locked my phone again and unlo... wait. I was in. No pattern any more. it just disappeared!

      I opened the settings app and searched for the security settings for "display lock". Before, I could decide between "PIN" (numbers only), "Password" (alphanumeric) and pattern. "Face unlock" and "fingerprint" were additionally available AFTER I set up a display lock.

      But now I can only choose "unlock password" which is a fixed length (6 digit) number. Why do they call it "password" if it's just a PIN?!

      So... why are the other options gone? Why can't I choose the pattern anymore? Why did it suddenly disappear? Questions after questions.

      My system information tell me that the phone still runs with android 10 and EMUI 10, the last security patch was on "01.07.2021" (july 1st). Also "USB debugging" was disabled. There was no software update for a long time.

      I am glad that I can use my phone again but I felt like the dumbest person on earth since I own a repair shop and I repair smartphones since 2010. Every time a customer tells me that he did not make any backups (what I did!) and that he did not set up any recovery option for his phone, I get a little angry with him.

      And then I could not access my own phone even I set up

      • huawei ID
      • google "find my phone"
      • "Lost android" by http://www.androidlost.com
      • SMS commands (like unlocking my fckn phone!) by http://www.androidlost.com
      • USB debugging with an authorization for my computer but nothing of that worked.

      In conclusion: I may not be as stupid as I felt and I'll never get an answer on how that happened. But I'm very happy.

      thanks for your time @alecxs

      posted in Mobile Testing
      R
      rosemadder
    • RE: Accessing available app updates in Play Store app through a shortcut

      Thanks to @alecxs for pointing me to https://stackoverflow.com/questions/68540618/intent-for-google-play-store-manage-apps-device-my-apps-updates-does-not , that does almost exactly what I need.

      The GPS intent is as follows:

      Action  : com.google.android.finsky.VIEW_MY_DOWNLOADS
      Package : com.android.vending
      Class   : com.google.android.finsky.activities.MainActivity
      Target  : Activity
      

      I used https://play.google.com/store/apps/details?id=rk.android.app.shortcutmaker to make a link to the Manage Apps & Devices' Overview page, which makes my life easier now.

      posted in Mobile Testing
      R
      rosemadder
    • RE: How can I install Slack app on an old Galaxy S6 phone?

      The recent version of Slack v22.01.11.0 for Android I can see on https://apkpure.com/de/slack/com.Slack defines in it's AndroidManifest.xml android:minSdkVersion="26" so this app requires at least Android 8.0.

      The Galaxy S6 comes (according to https://www.gsmarena.com/samsung_galaxy_s6-6849.php ) with Android 5.0.2 (Lollipop), upgradable to Android 8.0 (Oreo). So if your device is fully upgraded to Android 8 you should be able to install Slack from https://play.google.com/store/apps/details?id=com.Slack or from a web site that provides the APK like https://apkpure.com https://apkmirror.com ...

      posted in Mobile Testing
      R
      rosemadder
    • Hide notch on Android 11

      I just got my Fairphone 4, and, overall the device is nice, but I can't get used to the notch.

      Since the display aspect ratio is super tall anyways and I can use a bit more bezel on the bottom as well (for a keyboard attachment that I built and used on my last phone), I figured, I'd use wm size over adb to just reduce the screen's vertical resolution and thus create bezels on top and bottom.

      But after I did that, this is what happened:

      screenshot

      Sorry for the bad picture quality.

      What happened is, it didn't remove the rounded corners and/or the notch, it just moved them farther down. So apparently, the OS doesn't seem to render the pixels behind the screen cutouts at all, and when I made the used screen area smaller, it just moved those dead zones with it. Even if I shrink the vertical resolution to 1000 pixel (which is less than half), the behaviour stays the same.

      Is there a way to disable that functionality?

      I want to end up with just a square display area.

      It would be best if I can get that only with adb/onboard stuff. If you are recommending an app for that, it should be one that doesn't have ads/microtransactions.

      posted in Mobile Testing
      R
      rosemadder
    • RE: A malicious file keeps appearing on my phone even if I have formatted it (1_unit_15x15_3_goldenFmt)

      This is not a threat. If you google filename it shows up on androidhost and scribd which is highly likely to be created by some app for its functioning and not a malware script.

      posted in Mobile Testing
      R
      rosemadder
    • RE: I changed my Google account password on my PC. How do I make the change on my phone and tablets?

      Google usually does not use passwords for authentication on Android. Only for the initial account set-up you have to enter username and password which is then sent to the Google authentication server but not stored on your phone.

      If username and password were correct the authentication server sends back an long term oAuth authentication token (looks like a long string of random characters - usually 50 character or longer) which used for authentication and updated periodically by the server (about every month).

      Therefore changing the password has no effect on your Android device. Do logout devices from your Google account Google provides a web page where you cans see all active devices and where you can log out each device if want: http://google.com/devices

      posted in Mobile Testing
      R
      rosemadder
    • How can I disable the Android 11's auto-reset permissions globally?

      Since Android 11, there is a system feature where it resets app permissions after a certain amount of time has passed and you haven't used the app. I hate this, it keeps resetting apps I use infrequently.

      I know you can turn it off on most apps, but it seems to turn back on when there are app or system updates. There must be a way to disable this feature entirely or to make the default setting off instead of on.

      I have tried various searches but I can find nothing. Others must have had the desire to disable this annoying feature? Any help would be appreciated!

      posted in Mobile Testing
      R
      rosemadder
    • RE: Slow loading of the internal storage folder in PC

      Issue you're facing is mostly because of either of these two reasons:

      1. MTP acts retarded when there are too many files
      2. Windows acts dumb sometimes (switch to linux)

      I don't really have a solution to either than switching to linux (as i did) for the latter

      Now some REAL workaround to HELP you:

      1. Connect Your phone and computer to same WiFi/hotspot or even connect your pc to the same mobile's hotspot
      2. Download MixPlorer or any other file manager with FTP on your android device

      then follow this guide

      https://manyandroid.app/android-ftp-file-transfer-mixplorer/

      Trust me learning to transfer file this way would just be a one time investment, this setup will help you forever!

      posted in Mobile Testing
      R
      rosemadder
    • Capture TLS handshake

      I would like to capture TLS handshakes coming from Android. I was able to install a certificate using https://android.stackexchange.com/a/70123 , then I started a server:

      openssl s_server -key my_site.key -cert my_site.crt -msg
      

      and I set a proxy in the Android Emulator:

      127.0.0.1:4433
      

      but if I browse to any pages on the Android device, I get this result:

      ERR_CONNECTION_REFUSED
      

      and this result in OpenSSL:

      <<< ??? [length 0005]
          43 4f 4e 4e 45
      ERROR
      24500:error:1408F09B:SSL routines:ssl3_get_record:https proxy request:../
      openssl-1.1.1l/ssl/record/ssl3_record.c:325:
      shutting down SSL
      CONNECTION CLOSED
      

      What am I doing wrong?

      posted in Mobile Testing
      R
      rosemadder
    • RE: Mosquitto broker on android 9 hotspot = random broker address

      Solved after thinking about it a bit more:

      On mqtt client app (that runs on the android hotspot) i've set the broker address as "localhost".

      On the ESP32 cam alarm add this lines after the wifi connection

      int mqtt_server = WiFi.gatewayIP(); //ugly but works
      client.setServer(mqtt_server, 1883);
      

      hope this helps others that want to run mqtt broker directly on their android hotspot

      posted in Mobile Testing
      R
      rosemadder
    • How to change user agent sent by firefox?

      I'd like to change user agent in firefox runnig on android, but there is no add-on for this, and no about:config. What can I do?

      posted in Mobile Testing
      R
      rosemadder
    • Does work profile installations double the space taken by apps?

      Our EMM configuration installs a separate Chrome instance in the user's work profile. One user has concerns that this takes unnecessary space from their device.

      If the same app (e.g. Chrome) is installed in user-space and inside a work profile, does the installation take double the space, or is the same installation used for both profiles?

      posted in Mobile Testing
      R
      rosemadder
    • Galaxy S21: How do I leave my mobile hotspot turned on 24/7?

      I'd like to have my mobile hotspot turned on 24/7. Currently, it gets turned off it's not being used for a while. How do I disable this behavior make it permanently turned on?

      posted in Mobile Testing
      R
      rosemadder
    • How do I give velocity to players?

      I need help with modifying the players velocity in Minecraft.

      I have tried:

      /data merge entity Bla0 {Motion:[0.0, 0.8, 0.0]}
      

      and

      /data modify entity Bla0 Motion[0] set value 0.001d
      

      but both give the error message:

      Unable to modify player data.

      I run minecraft 1.18.2 with optifine. The server is on paper with no plugins.

      posted in Game Testing
      R
      rosemadder
    • 1
    • 2
    • 3
    • 4
    • 5
    • 1484
    • 1485
    • 1 / 1485