Contributions
Mobile device (Local Appium) disconnects at the end of every test
I have written script tests for an emulated mobile device (iOS). We use local appium to host the mobile devices and connect to the mobile app under test. I have had all components working as expected before. Now, after my script ends, the connected device is disconnected and needs to be reselected (See highlighted portion of attached photo). Prior, my script would end, the log would be generated, and the device would remain connected. Any thoughts on why this is happening now?295Views0likes1CommentRe: Using a returned value from a tested app
This is exactly what I was trying to look for. Thank you.12 months agoPlace TestComplete QuestionsTestComplete Questions325Views0likes0CommentsUsing a returned value from a tested app
I added a tested app into my testcomplete project. This python script is able to be ran using TestedApp.script_name.Run(); I am able to successfully deliver command line parameters to this script. This script then returns a value. I want to retrieve this value within my testcomplete project. Is this possible? This is what I would like to do: process = TestedApp.script_name.Run(); ** App runs and completes. It generates the number 25 ** Log.Message(process); Output: 25Solved12 months agoPlace TestComplete QuestionsTestComplete Questions368Views0likes2CommentsRe: Keys method does not input the entire string
.Keys() appears to have been working now. I did not go through with the update as mentioned above. As I have not changed anything, I assume I was just having a random bug that is no longer in affect. I'll accept the update as the solution since that would make the most sense if this inconsistency was still present.1.4KViews0likes1CommentStarting Android devices on the Server Machine
Our setup is as this: 1) TestComplete running on Laptop A (this is where we write the test cases). 2) Appium and Android Studio running on Laptop B (this runs the server and connected devices). 3) I am not sure if this is relevant but Laptop C runs TestExecute for our licenses. What we have noticed is that we can connect to any device listed through the command 'xcrun xctrace list devices' from Laptop A (The command can be ran on laptop B). This handles all of our iOS needs. In order to connect to Android devices, we need to run them by stating a model and specific version. Then we can start them through Android Studio (on Laptop B). It is note worthy that these emulators are given the name similar to 'emulator-1234' whereas their iOS counterparts would have names similar to 'iPhone 13' then we can also supply a version such as '16.1'. This is problematic because to run several devices we need to have the specified device started through Android Studio. If the device doesn't exist everything crashes. This isn't an issue using iOS since all the devices are accessible at all times as mentioned above. Our idea is run TeamViewer on Laptop A in order to remove into Laptop B and try to run a batch script to spin up the Android devices. This very much sounds like a horrible way to go about a solution. We are very much unsure of where to start with researching about this issue. Please shoot any possible ideas! Thank you guys in advance for any advice.438Views0likes2CommentsRe: Handling Inconsistent popups
if (obj.Wait().Exists) { // Some code } I found this in the documentation listed below. The difference with this and the example you showed is the Wait element instead of the Find element! Thank you for your help Alex. https://support.smartbear.com/testcomplete/docs/app-objects/common-tasks/checking-existence.html484Views0likes0CommentsHandling Inconsistent popups
I am writing a script test that performs a login using Apple ID. In the app the user selects 'login with Apple Id' then they are brought to Apple's login browser which pops up over the app. This is all expected. The issue is that sometimes This browser does not load and a system notification is shown stating 'The app did not load correctly'. This is an Android specific popup that was not implemented by my tested app. I am able to incorporate logic that if this popup is on screen then it will click 'continue' and go about as expected. My issue is when this popup does not occur, my script will present an error saying the popup is not found then continue with the logic as expected. I am using the .Visible, .VisibleOnScreen, and .Exists attributes but they still all run causing the attached error. I can see in the logs that either way the script continues and in the end will output correctly. But since sometimes the popup does not occur, the if check is ran and produces an error causing the executed script to error. Is there any way to handle a sometimes occurring element without producing any errors in the logs?Solved557Views0likes4CommentsRe: Keys method does not input the entire string
No worries using the SetText() method since I don't even have the option to use it. My TestComplete Version is version15.44.11.7 x64. The most recent release of TestComplete is 15.47. Within these newer releases, the only thing for the Mobile module that looks to affect my issue is that there were improvements in the performance of the Keys module. Do you think this could be a resolution? Here are some other versions that may be a related to my issue: License for Perpetual (Desktop, Web, Mobile). Microsoft Windows 10 Enterprise, 64-bit (10.0 Build 19044)1.5KViews0likes1Comment