Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rmonteiro

Pages: [1]
1
NGUI 3 Support / Re: Fake OnPress/OnDrag Event
« on: May 05, 2015, 05:13:54 PM »
I am new to Unity and NGUI. The game already does the required actions like drag,drop,press

We(QA) would like to automate some GUI testing. We started a low protocol server within the game which responds to certain request and sends them to Unity thread. For eg if it receives a tap request on an object we do gameObj.SendMessage("OnClick");

We would like to automate the drag functionality too.

As per your suggestion why shouldn't we send messages? So we need to set up all required flags in UICamera to simulate this? How do we simulate a mousetouchevent?

2
NGUI 3 Support / Fake OnPress/OnDrag Event
« on: April 30, 2015, 01:05:28 PM »
We are trying to automate few test cases of our Unity game. We were able to simulate user tap by sending gameObj.SendMessage("OnClick");

However when trying to send OnPress gameObj.SendMessage("OnPress"); It does not seem to press the object. The object has UI Button, UIDragDropItem and UIEventTrigger script attached.

Any suggestions? It looks like I need to fake the event is being sent from UICamera however not sure how do I go about it.

I tried this suggestion http://www.tasharen.com/forum/index.php?topic=4721.msg22743#msg22743
however I receive an NRE

Pages: [1]