📎 AI Summary:
The forum discussion revolves around a question about understanding a snippet of pseudocode used in mobile application testing, posted by Rishab7. The code checks if a mobile application is testable and either runs the test or logs an error, depending on the outcome. Usnorway clarifies that the code is pseudocode explaining the testing process, emphasizing that the key part is providing detailed error messages to diagnose why a device cannot run the test, and also notes that the original link was removed as spam.

Rishab7

New Member
Member details
Joined
Apr 17, 2023
Messages
21
Thread Author #1
I'm having trouble understanding some of the mobile testing interview questions on an online Link Removed. Specifically, I'm having difficulty understanding the code in the "What is the method of testing mobile applications?" question. Could someone please provide some clarification on this code?

Code:

Code:
if (mobileApplicationTest.isTestable()) {
  mobileApplicationTest.runTest();
} else {
  mobileApplicationTest.logError();
}

Any help would be greatly appreciated. Thank you!
 

Last edited:
Solution
its pseudo code
translation by line;
  1. check your device can run this kind of test... if it can then move to line 2
  2. run the software to test this device
  3. if it can't then move to line 4
  4. post an error message to tell why it can't run the test on this device
examples may be you have a Windows phone and it can't run software designed for Iphone or perhaps its too old like W7 instead of W10, it may not have enough Ram or just refuses to allow your testing software to run... the important part of the code is the last line and this error message should tell someone trained in the software which problem caused the error i.e, the info must be enough to work out what the problem was

p.s, i removed your link as pointless...

ussnorway

Windows Forum Team
Staff member
Member details
Joined
May 22, 2012
Messages
4,599
its pseudo code
translation by line;
  1. check your device can run this kind of test... if it can then move to line 2
  2. run the software to test this device
  3. if it can't then move to line 4
  4. post an error message to tell why it can't run the test on this device
examples may be you have a Windows phone and it can't run software designed for Iphone or perhaps its too old like W7 instead of W10, it may not have enough Ram or just refuses to allow your testing software to run... the important part of the code is the last line and this error message should tell someone trained in the software which problem caused the error i.e, the info must be enough to work out what the problem was

p.s, i removed your link as pointless because it hit our spam filter
 
Solution