Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by DonCordiale · Mar 30, 2017 at 10:30 AM · unity 5testingautomationnodejs

GameTestAutomationExample

Some time ago I found some amazing work on test automation of unity games, but I got stuck on implementing it in our project.

The test example can be found here: GitHub

I was able to run the tests on flappy bird game and fiddled with some test scenarios. Then I wanted to use it in my own project and got stuck on the step that involves adding gameObjects to the ObjectLogger. After adding the objects I try to build and run the app but nothing gets logged so theres no way for the test script to do anything.

I would gladly contribute to the project with more examples and more precise instructions, but I just need to understand how to build my own project with object logging enabled.

@ujappelbe @rasmus-unity @shusso - any tips on that? :)

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by ujappelbe · Mar 30, 2017 at 10:56 AM

Hi @DonCordiale,

Are you using iOS or Android for your testing? On iOS you might need to do some additional work to enable the logging to syslog, there is more information here: http://answers.unity3d.com/questions/416675/get-debuglog-output-in-the-working-ios-build.html#answer-1271074

I'm glad to see interest in the project, I hope this helps.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DonCordiale · Mar 30, 2017 at 11:14 AM 0
Share

Thanks for a fast reply @ujappelbe. I develop on a $$anonymous$$ac, and for this project I tried with Android development build. I think that the logging in general works just fine, I just can't see any logs from the ObjectLogger when I build my app and run it on an emulator.

The manual on GitHub stops on the step where we drag game objects to the object logger prefab. I'm not sure how to proceed later on. Do I just build the app and the logger should work or there are some other steps necessary to do before I build it?

avatar image ujappelbe DonCordiale · Apr 03, 2017 at 01:39 PM 1
Share

I added a second gif which covers the rest of the process to the READ$$anonymous$$$$anonymous$$md. http://i.imgur.com/02sruZr.gif

You can see here the object getting logged when it becomes visible.

This is clean project where I only added the 'AutomationHelpers.unitypackage' file before starting the capture.

I hope this helps

avatar image DonCordiale · Apr 04, 2017 at 10:27 AM 0
Share

Thanks for your reply @ujappelbe. I figured out this part before, when I opened the example project in unity and noticed that in the example uses static objects and the project that I'm working on uses dynamic objects and they just dissapear from the objectlogger prefab as soon as I do some in game action that switches from the gameplay to some menus or when I stop the gameplay in the editor.

In my case logging prefabs that are used to create those dynamic objects seems to be working, but there are some other issues like crashes etc. but I will have to work it out on my own.

Thanks again for sharing your knowledge.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

144 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Cannot read past end of stream, MemoryStream 1 Answer

Unity Test Tools Not Working 0 Answers

Failed to get a line number for unity test method. So please find it in opened file in external editor 1 Answer

Testing Duration With Unit Tests 0 Answers

What testing automation tool are you using? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges