-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/development'
- Loading branch information
Showing
38 changed files
with
5,205 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
Docs/source/_static/examples~/common/csharp-android-test-unreal.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using AltTester.AltTesterUnitySDK.Driver; | ||
using AltTester.AltTesterUnitySDK.Driver.AltReversePortForwarding; | ||
using NUnit.Framework; | ||
|
||
public class MyFirstTest | ||
{ | ||
private AltDriver altDriver; | ||
|
||
[OneTimeSetUp] | ||
public void SetUp() | ||
{ | ||
AltReversePortForwarding.ReversePortForwardingAndroid(); | ||
altDriver = new AltDriver(); | ||
} | ||
|
||
[OneTimeTearDown] | ||
public void TearDown() | ||
{ | ||
altDriver.Stop(); | ||
AltReversePortForwarding.RemoveReversePortForwardingAndroid(); | ||
} | ||
|
||
[Test] | ||
public void TestStartGame() | ||
{ | ||
altDriver.LoadScene("MainMenu"); | ||
|
||
altDriver.FindObject(By.NAME, "Close Button").Click(); | ||
altDriver.FindObject(By.NAME, "Button").Click(); | ||
|
||
var panelElement = altDriver.WaitForObject(By.NAME, "Panel"); | ||
Assert.IsTrue(panelElement.enabled); | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
Docs/source/_static/examples~/common/java-android-test-unreal.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import org.junit.AfterClass; | ||
import org.junit.Assert; | ||
import org.junit.BeforeClass; | ||
import org.junit.Test; | ||
import com.alttester.AltReversePortForwarding; | ||
import com.alttester.AltDriver; | ||
import com.alttester.AltObject; | ||
import com.alttester.Commands.FindObject.AltFindObjectsParameters; | ||
import com.alttester.Commands.FindObject.AltWaitForObjectsParameters; | ||
|
||
import java.io.IOException; | ||
|
||
public class MyFirstTest { | ||
|
||
private static AltDriver altDriver; | ||
|
||
@BeforeAll | ||
public static void setUp() throws IOException { | ||
AltReversePortForwarding.reversePortForwardingAndroid(); | ||
altDriver = new AltDriver(); | ||
} | ||
|
||
@AfterAll | ||
public static void tearDown() throws Exception { | ||
altDriver.stop(); | ||
AltReversePortForwarding.removeReversePortForwardingAndroid(); | ||
} | ||
|
||
@Test | ||
public void openClosePanelTest() { | ||
altDriver.loadScene(new AltLoadSceneParams.Builder("MainMenu").build()); | ||
|
||
AltFindObjectsParams closeButtonObjectsParameters = new AltFindObjectsParams.Builder( | ||
AltDriver.By.NAME, "Close Button") | ||
.build(); | ||
altDriver.findObject(closeButtonObjectsParameters).Click(); | ||
|
||
AltFindObjectsParams buttonObjectsParameters = new AltFindObjectsParams.Builder( | ||
AltDriver.By.NAME, "Button") | ||
.build(); | ||
altDriver.findObject(buttonObjectsParameters).Click(); | ||
|
||
AltFindObjectsParams panelObjectsParameters = new AltFindObjectsParams.Builder( | ||
AltDriver.By.NAME, "Panel") | ||
.build(); | ||
AltWaitForObjectsParams panelWaitForObjectsParameters = new AltWaitForObjectsParams.Builder( | ||
panelObjectsParameters).build(); | ||
AltObject panelElement = altDriver.waitForObject(panelWaitForObjectsParameters); | ||
|
||
Assertions.assertTrue(panelElement.isEnabled()); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
Docs/source/_static/examples~/common/python-android-test-unreal.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import unittest | ||
|
||
from alttester import * | ||
|
||
|
||
class MyFirstTest(unittest.TestCase): | ||
|
||
alt_driver = None | ||
|
||
@classmethod | ||
def setUpClass(cls): | ||
AltReversePortForwarding.reverse_port_forwarding_android() | ||
cls.alt_driver = AltDriver() | ||
|
||
@classmethod | ||
def tearDownClass(cls): | ||
cls.alt_driver.stop() | ||
AltReversePortForwarding.remove_reverse_port_forwarding_android() | ||
|
||
def test_open_close_panel(self): | ||
self.alt_driver.load_scene("MainMenu") | ||
|
||
self.alt_driver.find_object(By.NAME, "Close Button").click() | ||
self.alt_driver.find_object(By.NAME, "Button").click() | ||
|
||
panel_element = self.alt_driver.wait_for_object(By.NAME, "Panel") | ||
self.assertTrue(panel_element.enabled) |
23 changes: 23 additions & 0 deletions
23
Docs/source/_static/examples~/common/robot-android-test-unreal.robot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
*** Settings*** | ||
Library AltTesterLibrary | ||
Suite Setup SetUp Tests | ||
Suite Teardown Teardown Tests | ||
|
||
*** Test Cases *** | ||
Test Open Close Panel | ||
Load Scene MainMenu | ||
${close_button}= Find Object NAME Close Button | ||
Click Object ${close_button} | ||
${button}= Find Object NAME Button | ||
Click Object ${button} | ||
${panel_element}= Wait For Object NAME Panel | ||
Should Be True ${panel_element.enabled} | ||
|
||
*** Keywords *** | ||
SetUp Tests | ||
Reverse Port Forwarding Android | ||
Initialize Altdriver | ||
|
||
Teardown Tests | ||
Stop Altdriver | ||
Remove Reverse Port Forwarding Android |
31 changes: 31 additions & 0 deletions
31
Docs/source/_static/examples~/get-started/csharp-test-unreal.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using NUnit.Framework; | ||
using AltTester.AltTesterUnitySDK.Driver; | ||
|
||
public class MyFirstTest | ||
{ | ||
private AltDriver altDriver; | ||
|
||
[OneTimeSetUp] | ||
public void SetUp() | ||
{ | ||
altDriver = new AltDriver(); | ||
} | ||
|
||
[OneTimeTearDown] | ||
public void TearDown() | ||
{ | ||
altDriver.Stop(); | ||
} | ||
|
||
[Test] | ||
public void TestStartGame() | ||
{ | ||
altDriver.LoadScene("MainMenu"); | ||
|
||
altDriver.FindObject(By.NAME, "Close Button").Click(); | ||
altDriver.FindObject(By.NAME, "Button").Click(); | ||
|
||
var panelElement = altDriver.WaitForObject(By.NAME, "Panel"); | ||
Assert.IsTrue(panelElement.enabled); | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
Docs/source/_static/examples~/get-started/java-test-unreal.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import org.junit.AfterClass; | ||
import org.junit.Assert; | ||
import org.junit.BeforeClass; | ||
import org.junit.Test; | ||
import com.alttester.AltDriver; | ||
import com.alttester.AltObject; | ||
import com.alttester.Commands.FindObject.AltFindObjectsParameters; | ||
import com.alttester.Commands.FindObject.AltWaitForObjectsParameters; | ||
|
||
import java.io.IOException; | ||
|
||
public class myFirstTest { | ||
|
||
private static AltDriver altDriver; | ||
|
||
@BeforeClass | ||
public static void setUp() throws IOException { | ||
altDriver = new AltDriver(); | ||
} | ||
|
||
@AfterClass | ||
public static void tearDown() throws Exception { | ||
altDriver.stop(); | ||
} | ||
|
||
@Test | ||
public void openClosePanelTest() { | ||
altDriver.loadScene("MainMenu"); | ||
|
||
AltFindObjectsParameters closeButtonObjectsParameters = new AltFindObjectsParameters.Builder( | ||
AltDriver.By.NAME, "Close Button") | ||
.build(); | ||
altDriver.findObject(closeButtonObjectsParameters).Click(); | ||
|
||
AltFindObjectsParameters buttonObjectsParameters = new AltFindObjectsParameters.Builder( | ||
AltDriver.By.NAME, "Button") | ||
.build(); | ||
altDriver.findObject(buttonObjectsParameters).Click(); | ||
|
||
AltFindObjectsParameters panelObjectsParameters = new AltFindObjectsParameters.Builder( | ||
AltDriver.By.NAME, "Panel") | ||
.build(); | ||
AltWaitForObjectsParameters panelWaitForObjectsParameters = new AltWaitForObjectsParameters.Builder( | ||
panelObjectsParameters).build(); | ||
AltObject panelElement = altDriver.waitForObject(panelWaitForObjectsParameters); | ||
|
||
Assert.assertTrue(panelElement.isEnabled()); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
Docs/source/_static/examples~/get-started/python-test-unreal.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import unittest | ||
|
||
from alttester import * | ||
|
||
|
||
class MyFirstTest(unittest.TestCase): | ||
|
||
alt_driver = None | ||
|
||
@classmethod | ||
def setUpClass(cls): | ||
cls.alt_driver = AltDriver() | ||
|
||
@classmethod | ||
def tearDownClass(cls): | ||
cls.alt_driver.stop() | ||
|
||
def test_open_close_panel(self): | ||
self.alt_driver.load_scene("MainMenu") | ||
|
||
self.alt_driver.find_object(By.NAME, "Close Button").click() | ||
self.alt_driver.find_object(By.NAME, "Button").click() | ||
|
||
panel_element = self.alt_driver.wait_for_object(By.NAME, "Panel") | ||
self.assertTrue(panel_element.enabled) |
14 changes: 14 additions & 0 deletions
14
Docs/source/_static/examples~/get-started/robot-test-unreal.robot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
*** Settings*** | ||
Library AltTesterLibrary | ||
Suite Setup Initialize Altdriver | ||
Suite Teardown Stop Altdriver | ||
|
||
*** Test Cases *** | ||
Test Open Close Panel | ||
Load Scene MainMenu | ||
${close_button}= Find Object NAME Close Button | ||
Click Object ${close_button} | ||
${button}= Find Object NAME Button | ||
Click Object ${button} | ||
${panel_element}= Wait For Object NAME Panel | ||
Should Be True ${panel_element.enabled} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-593 Bytes
(99%)
Docs/source/_static/img/alttester-with-cloud/browserstack-local-diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-443 Bytes
(100%)
Docs/source/_static/img/alttester-with-cloud/browserstack-local-github-diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.42 KB
Docs/source/_static/img/get-started/restart-editor-plugin-changes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.7 KB
Docs/source/_static/img/get-started/unzip-alttester-unreal-sdk-package.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,10 @@ | ||
License | ||
======= | ||
|
||
AltTester® Unity SDK is licensed under the GNU General Public License v3.0. This | ||
means that the end user has the freedom to use, share and modify the software. | ||
It's a copyleft license, which means that if any derivative work must be | ||
distributed, it should be distributed under the same or equivalent license | ||
terms. As long as it's added to the development build and not distributed, | ||
it has no restrictions for the end user. | ||
AltTester® SDK is provided under specific licensing terms. For details | ||
regarding the license, please refer to the **LICENSE** file included in the | ||
SDK package. This file outlines the terms and conditions for using, | ||
modifying, and distributing the software. | ||
|
||
The GPL license type allows you to use this software internally in your | ||
company, without any obligations (no need to be copyright holders for the Unity | ||
engine). | ||
|
||
The only obligation you have regarding this open source software is related to | ||
distribution. If you want to distribute AltTester® Unity SDK, or some parts of it | ||
you have to make sure you distribute it under the same license terms. For | ||
example, if you plan to release a app containing AltTester® Unity SDK, then you’d | ||
have to apply the same GPL3 terms to your app. Otherwise, if you only use it | ||
for developing and testing your app, you don't have any obligations. | ||
|
||
License Text | ||
------------ | ||
|
||
See `LICENSE <https://github.com/alttester/AltTester-Unity-SDK/blob/master/LICENSE>`_ | ||
for more information. | ||
If you have any questions about the license, consult the | ||
**LICENSE** file or reach out to our support team for clarification. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.