Skip to content

Commit f0e7d21

Browse files
authored
Merge pull request #52 from SourcePointUSA/DIA-3170-ui-tests
UI Tests
2 parents 71456ed + f5db474 commit f0e7d21

File tree

626 files changed

+61189
-63
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

626 files changed

+61189
-63
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,12 @@ Thumbs.db.meta
5656
*.vscode
5757

5858
*.keystore
59+
60+
#UI-TESTS related
61+
/UI-TESTS/bin/Debug/
62+
/UI-TESTS/obj/Debug/
63+
/UI-TESTS/BUILDS/Android/
64+
/UI-TESTS/BUILDS/iOS/
65+
/UI-TESTS/obj/project.nuget.cache
66+
/UI-TESTS/obj/
67+
!/UI-TESTS/UI-TESTS.csproj

Assets/AltTester.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/AltTester/Editor.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "AltTester.AltTesterUnitySDK.Editor",
3+
"rootNamespace": "",
4+
"references": [
5+
"GUID:0acc523941302664db1f4e527237feb3",
6+
"GUID:478b585cfbb242f4c977b9aec772e042",
7+
"GUID:478a2357cc57436488a56e564b08d223",
8+
"GUID:451516970bc990e418454aa78b72586e",
9+
"GUID:9e24947de15b9834991c9d8411ea37cf",
10+
"GUID:69448af7b92c7f342b298e06a37122aa"
11+
],
12+
"includePlatforms": [
13+
"Editor"
14+
],
15+
"excludePlatforms": [],
16+
"allowUnsafeCode": false,
17+
"overrideReferences": true,
18+
"precompiledReferences": [
19+
"nunit.framework.dll",
20+
"NLog.dll",
21+
"Newtonsoft.Json.dll"
22+
],
23+
"autoReferenced": true,
24+
"defineConstraints": [],
25+
"versionDefines": [
26+
{
27+
"name": "com.unity.addressables",
28+
"expression": "1",
29+
"define": "ADDRESSABLES"
30+
}
31+
],
32+
"noEngineReferences": false
33+
}

Assets/AltTester/Editor/AltTester.AltTesterUnitySDK.Editor.asmdef.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using NUnit.Framework;
2+
using AltTester.AltTesterUnitySDK.Driver;
3+
4+
public class #SCRIPTNAME#
5+
{ //Important! If your test file is inside a folder that contains an .asmdef file, please make sure that the assembly definition references NUnit.
6+
public AltDriver altDriver;
7+
//Before any test it connects with the socket
8+
[OneTimeSetUp]
9+
public void SetUp()
10+
{
11+
altDriver =new AltDriver();
12+
}
13+
14+
//At the end of the test closes the connection with the socket
15+
[OneTimeTearDown]
16+
public void TearDown()
17+
{
18+
altDriver.Stop();
19+
}
20+
21+
[Test]
22+
public void Test()
23+
{
24+
//Here you can write the test
25+
}
26+
27+
}

Assets/AltTester/Editor/DefaultTestExample.txt.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/AltTester/Editor/Logging.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
Copyright(C) 2023 Altom Consulting
3+
4+
This program is free software: you can redistribute it and/or modify
5+
it under the terms of the GNU General Public License as published by
6+
the Free Software Foundation, either version 3 of the License, or
7+
(at your option) any later version.
8+
9+
This program is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU General Public License for more details.
13+
14+
You should have received a copy of the GNU General Public License
15+
along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
*/
17+
18+
using System;
19+
using AltTester.AltTesterUnitySDK.Driver.Logging;
20+
using NLog;
21+
using NLog.Layouts;
22+
23+
namespace AltTester.AltTesterUnitySDK.Editor.Logging
24+
{
25+
public class EditorLogManager
26+
{
27+
public static LogFactory Instance { get { return instance.Value; } }
28+
private static readonly Lazy<LogFactory> instance = new Lazy<LogFactory>(buildLogFactory);
29+
30+
private static LogFactory buildLogFactory()
31+
{
32+
var config = new NLog.Config.LoggingConfiguration();
33+
var unitylog = new UnityTarget("AltEditorUnityTarget")
34+
{
35+
Layout = Layout.FromString("${longdate}|Editor|${level:uppercase=true}|${message}"),
36+
};
37+
config.AddRule(LogLevel.Debug, LogLevel.Fatal, unitylog);
38+
39+
LogFactory logFactory = new LogFactory
40+
{
41+
Configuration = config,
42+
AutoShutdown = true
43+
};
44+
45+
return logFactory;
46+
}
47+
}
48+
}

Assets/AltTester/Editor/Logging/EditorLogManager.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)