Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Veronika Kotckovich
@Veronika-Kot

Hey, I need to automate a game on Android emulator (Android 7.0 armeabi-v7a, API 24) using Java. I imported AltUnity to Unity project, builded a development build. Installed it on emulator using adb, run adb forward tcp:13000 tcp:13000, and started the app. I see the pop-up "Waiting for connection on port 13000", so good so far.

I made a driver with driver = new AltUnityDriver("127.0.0.1", 13000,";","&",true); and started the tests , and I was getting AltUnityServer not running on port 13000 after each 5 sec. After the 3-rd message, the pop-up disappeared, which suppose to mean that a Tester connected to the server. However, I continue getting those messages until the test fail. What I am missing?

4 replies
stcallan
@stcallan
Hi, are there any examples of using AltUnityTester on a real device but with tests written in C# running on Windows? I think this is possible from reading the docs but not entirely sure. If someone has an example that would be great
4 replies
jborlido
@jborlido
image.png
Hi, I want to wait for async code to finish inside a test, how can I achieve this?
That battle_page.battle_flow() is an async method, and I want to wait for it to finish
image.png
Getting this warning and the test is ignored
stcallan
@stcallan
Hi, Does the C# AltUnityDriver support port forwarding?
stcallan
@stcallan
Hmmm.. I looked at this example here, but AltUnityPortHandler is not available in the package https://altom.gitlab.io/altunity/altunitytester/pages/advanced-usage.html#how-to-setup-port-forwarding
1 reply
Abel Dantas
@abeldantas
imagem.png
How the heck do I turn off DEBUG logging?
this level of logging is truly outrageous
Abel Dantas
@abeldantas
😱
Ru Cindrea
@ru.cindrea_gitlab
3 replies
mateuszadamczyk95
@mateuszadamczyk95
Hello , I'm new in Unity and Testing UI Automation in AltUnityTester. I have a problem with open menu in app ( normally in editor i click 'tab'). I was using methods like : presskey , presskeyandwait , keycode etc.- it don't open my menu. I also try to switch off current objects which are responsible for my current view and switch on another one by setactive() method. Does the c# AltUnityDriver support switching objects during the test ?
1 reply
mateuszadamczyk95
@mateuszadamczyk95
image.png
image.png
NicoAtTangelo
@NicoAtTangelo
image.png
2 replies
Hello there, I'm trying to take a screenshot but end up with the following error message :
Dan Fletcher
@dvfletcher_gitlab
Hi, just want to second that I recently upgraded Unity (2019.4.8f1 in my case) and am also blocked by this issue altom/altunity/altunitytester#381. Getting the fix fast tracked would be a huge help
1 reply
pusoktimea
@pusoktimea_gitlab

Hi all,
We've just created a discord server!
https://discord.gg/nSUjHp
Please join as we'd like to move there the discussions from gitter. We thought it will be easier to keep track of things and be more organized.
We'll also remain active on our google group: https://groups.google.com/a/altom.com/g/altunityforum

Thanks and see you there!

pusoktimea
@pusoktimea_gitlab
Here's a new discord link: https://discord.gg/Ag9RSuS The one I added yesterday will expire soon :D this one is permanent
Irina Ishchenko
@irinauken
Hey guys, I noticed an extra permission prompt on iOS 14 (iOS 14 just added that consent message when apps try to access LAN). Do you think it might be triggered by altunitytester?
Screen Shot 2020-09-08 at 11.19.48 AM.png
Camila Marques Belem
@marquesbelem
Hello, I'm starting to use the tool and I would like to know if you intend to adapt it for ECS? Use entity instead of gameObject?
Adarsh
@Adarsh6938_twitter
Hi All, I was playing with the AltUnity tester for one of my apps and wanted to know if there is any API which can tell if the UI element is onscreen or not.
Waitforobject and findobject seem to not care if the object is on screen or not. It just returns true if the object is present.
Swathi S
@Swathi_S_gitlab
@ru.cindrea_gitlab , how to check the visibility of an element in Unity?
mateuszadamczyk95
@mateuszadamczyk95
hello is there something faster than POM for e2e tests in AltUnityTester Framework ?
pusoktimea
@pusoktimea_gitlab
Hey, can you please add your questions to discord ( https://discord.gg/Ag9RSuS ) ? We're not very active here on gitter since we created the discord server, so you'll most probably get a faster answer there :P
hoihoi8
@hoihoi8
Hi :) Enjoying the framework so far. To reduce the fragility of my tests I'd like to search for a gameobject in the following structure (ButtonContainer > Button > ButtonText) by doing "ButtonContainer/.../ButtonText". Is this possible, or do I need to type out the full path?
Raushan Sakhibzadin
@Ravshan
Hello, after set_component_property('UnityEngine.UI.Text', 'text', 'test', 'UnityEngine.UI') "Received data was: valueSet" but text is 'm_Text': '' why could be so?
Raushan Sakhibzadin
@Ravshan
in python swipe is no working
pusoktimea
@pusoktimea_gitlab
Hey @hoihoi8 and @Ravshan, could you please ask these questions on Discord ( https://discord.gg/Ag9RSuS ) Our developers are not very active here on Gitter anymore :D Thanks!
MildaGenius
@MildaGenius
Did somebody use AltUnity Tester on BrowserStack? I got error "AltUnityServer not running on port 13002". It is neccessenary to do some operation before run python script for run testing? BrowserStack + Appium + AltUnity Tester + python + iOS. I found only one note from @ananthatekklur1821.
jborlido
@jborlido

@PvanderLaan_gitlab on windows 10 it keeps telling me that machine actively refused the connection and no altunity server running on port 13000 even with ADB forward tcp:13000...and on mac it works...for the clicking on non ui I found out...but idk what I'm doing wrong to run the tests on windows...ran appium doctor and everything seems fine...

Facing this exact same issue, has anybody got past this hurdle?

Abel Dantas
@abeldantas
Hey, I am trying to run async tests on C#
anyone knows how to?
pusoktimea
@pusoktimea_gitlab
Hey, please join us on discord ( https://discord.gg/Ag9RSuS ) for questions/issues you notice. There's not a lot of activity here on gitter anymore.
eyal yovel
@eyaly_gitlab
Hi everyone, does someone has a Java example of how to use Appium with AltUnity?
Tiago Felipe Dias de Oliveira
@Skisperd
Hello, it is possible to use AltUnity with Page Objects and report Allure in Unity3D. If anyone has with Page Objects, could you please share. Tks
Tiago Felipe Dias de Oliveira
@Skisperd
image.png
ManasGarai-INT
@ManasGarai-INT
Can anyone send some details about how to do Multiplayer testing with AltUnityTester framework.
Andra Cardas
@andra.cardas_gitlab
Hey @ManasGarai-INT, we have some Python tests for a Multiplayer game written here https://gitlab.com/altom/altunity/examples/alttanksmultiplayer-test-python . You can take a look at the scripts to see how we run the python tests on multiple devices.
ManasGarai-INT
@ManasGarai-INT
Thanks @andra.cardas_gitlab will check.
lekside123
@lekside123_gitlab
Hello i am trying to run an altunity test from thr command line but i am getting this in the log file executeMethod class 'AltUnityTestRunner' could not be found.
Argument was -executeMethod AltUnityTestRunner.RunTestFromCommandLine. can someone please help
pusoktimea
@pusoktimea_gitlab
@lekside123_gitlab @ManasGarai-INT Can you please join our discord server: https://discord.com/invite/4aCkEtk8Qp ? We are not active here on Gitter anymore. Thanks!
Zion Siton
@Zillustrator
Hi guys,
I'm having problems finding the parent of a canvas object using its id. I think an issue has been raised about this bug already (parent id for canvas objects returns rect-transform's id) but I wanted to bump the issue or find a workaround
jborlido
@jborlido
image.png
Hi everyone,
I'm having some issues running my tests on AWS Device Farm. Basically, my tests are running without any issues on my local setup, but when they're run on the device farm this error is constantly thrown. Any ideas on how to solve this?
alan0508
@alan0508
where can i download the latest version 1.6.1 altunitytester unintypackage