Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Tests #52

Merged
merged 54 commits into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
afa8b28
Environment setup for Android [DIA-3797] , iOS [DIA-3798]
Nevazhnovu Apr 3, 2024
65e0e8f
[DIA-3799] add `AltTester` tool to the project
Nevazhnovu Apr 26, 2024
4e41db4
[DIA-3799] update `manifest`
Nevazhnovu Apr 26, 2024
7e671a7
update `.gitignore`
Nevazhnovu Apr 26, 2024
2980e52
[DIA-3799] `ProjectSettings` update: use `il2cpp` scripting backend
Nevazhnovu Apr 26, 2024
d993e49
[DIA-3799] `ProjectSettings` update: use new `InputSystem`
Nevazhnovu Apr 26, 2024
80a37d0
[DIA-3799] `AcceptAll` UI test for `GDPR`, `CCPA`, `USNAT` campaigns …
Nevazhnovu Apr 26, 2024
426d856
[DIA-3799] rename `chromedriver` to include exact version
Nevazhnovu Apr 30, 2024
c396e4f
[DIA-3799] add 4 `Automator` tasks to run the commands in the Termina…
Nevazhnovu Apr 30, 2024
1e0985a
[DIA-3799] minor refactor
Nevazhnovu Apr 30, 2024
bcec986
[DIA-3799] add `ShellHelper` script to use Start/Stop Automator tasks…
Nevazhnovu Apr 30, 2024
65c3b79
[DIA-3799] `RejectAll` UI test implemented
Nevazhnovu Apr 30, 2024
40874f3
[DIA-3799] `SourcepointSampleScene` update: use new `InputSystem`
Nevazhnovu May 2, 2024
a83711d
[DIA-3799] swipe up functionality
Nevazhnovu May 2, 2024
8e5b5a3
[DIA-3799] minor refactor
Nevazhnovu May 2, 2024
621bc67
[DIA-3799] `OpenPm` UI test implemented
Nevazhnovu May 2, 2024
cef4cd9
[DIA-3801] `Save&Exit` UI test for GDPR
Nevazhnovu May 3, 2024
7f6c1ae
[DIA-3801] refactor
Nevazhnovu May 3, 2024
75baf1d
[DIA-3801] more refactor
Nevazhnovu May 3, 2024
b37ce4a
[DIA-3800] much more refactor plus fix of iOS UI tests
Nevazhnovu May 7, 2024
fe29ae6
[DIA-3800] `ClearAll` UI test implementation
Nevazhnovu May 7, 2024
ea02215
[DIA-3801] update `StartAltTester` and `StartAppium` Automator apps
Nevazhnovu May 9, 2024
5e42d4f
[DIA-3801] `SaveAndExitUSNAT` UI test implemented
Nevazhnovu May 9, 2024
9931b76
[DIA-3801] `startup.sh` now ensures deterministic start and kill for …
Nevazhnovu May 9, 2024
1336eae
[DIA-3801] `SaveAndExitCCPA` UI test implemented
Nevazhnovu May 10, 2024
a7101bf
Merge branch 'release-2.3.2' into authId-ui-test
Nevazhnovu May 22, 2024
16381bb
Added `AuthId` value to scene and `_checkGetString` method for iOS br…
Nevazhnovu May 22, 2024
42e6220
Merge branch 'release-2.3.2' into authId-ui-test
Nevazhnovu May 23, 2024
c1aeeb7
add new test to `startup.sh` and check bridge string by `CallStaticMe…
Nevazhnovu May 23, 2024
d858a36
Merge branch 'release-2.3.2' into authId-ui-test
Nevazhnovu May 24, 2024
9c612ea
Merge branch 'authId-ui-test' of github.com:SourcePointUSA/unity-sdk …
Nevazhnovu May 24, 2024
c792e55
add sdk status to the scene and `PrivacySettings` script
Nevazhnovu May 29, 2024
60c5f1e
micro fixes
Nevazhnovu May 29, 2024
75de1ac
Merge pull request #56 from SourcePointUSA/authId-ui-test
Nevazhnovu Jun 6, 2024
e5252fc
Merge branch 'develop' into DIA-3170-ui-tests
Nevazhnovu Jun 7, 2024
ba160cf
Merge branch 'prepare-2.3.4' into DIA-3170-ui-tests
Nevazhnovu Jun 26, 2024
946b9bf
Merge branch 'DIA-4057-refactor-cmp-class-abstract' into DIA-3170-ui-…
Nevazhnovu Jul 5, 2024
4108dbb
fix after merge
Nevazhnovu Jul 9, 2024
be5dc8e
update `com.unity.inputsystem` to 1.7.0
Nevazhnovu Jul 9, 2024
29c87a3
fix after merge
Nevazhnovu Jul 9, 2024
f1542fa
update important settings
Nevazhnovu Jul 9, 2024
a0d3e21
revert `status`
Nevazhnovu Jul 9, 2024
ee649c8
micro fix
Nevazhnovu Jul 9, 2024
b476559
Fix `AuthIdTest`
Nevazhnovu Jul 10, 2024
eaf3861
a little bit of refactor
Nevazhnovu Jul 10, 2024
b694ef8
add authId test for android
Nevazhnovu Jul 10, 2024
96e7c9e
rename UI tests file
Nevazhnovu Jul 10, 2024
33d17f2
fix
Nevazhnovu Jul 10, 2024
0a983d2
Merge branch 'prepare-2.3.5' into DIA-3170-ui-tests
Nevazhnovu Jul 11, 2024
b908be3
Update `dependencies`
Nevazhnovu Jul 11, 2024
402fdbf
Merge branch 'develop' into DIA-3170-ui-tests
Nevazhnovu Jul 18, 2024
88f6d64
Fix AuthId test
Nevazhnovu Jul 18, 2024
99e87c1
fix test naming
Nevazhnovu Jul 18, 2024
f5db474
fix
Nevazhnovu Jul 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,12 @@ Thumbs.db.meta
*.vscode

*.keystore

#UI-TESTS related
/UI-TESTS/bin/Debug/
/UI-TESTS/obj/Debug/
/UI-TESTS/BUILDS/Android/
/UI-TESTS/BUILDS/iOS/
/UI-TESTS/obj/project.nuget.cache
/UI-TESTS/obj/
!/UI-TESTS/UI-TESTS.csproj
8 changes: 8 additions & 0 deletions Assets/AltTester.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/AltTester/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions Assets/AltTester/Editor/AltTester.AltTesterUnitySDK.Editor.asmdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "AltTester.AltTesterUnitySDK.Editor",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For sake of simplicity of code review purposes collapse everything within Assets/AltTester/ and/or mark the filse as **Viewed**.

"rootNamespace": "",
"references": [
"GUID:0acc523941302664db1f4e527237feb3",
"GUID:478b585cfbb242f4c977b9aec772e042",
"GUID:478a2357cc57436488a56e564b08d223",
"GUID:451516970bc990e418454aa78b72586e",
"GUID:9e24947de15b9834991c9d8411ea37cf",
"GUID:69448af7b92c7f342b298e06a37122aa"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [
"nunit.framework.dll",
"NLog.dll",
"Newtonsoft.Json.dll"
],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [
{
"name": "com.unity.addressables",
"expression": "1",
"define": "ADDRESSABLES"
}
],
"noEngineReferences": false
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions Assets/AltTester/Editor/DefaultTestExample.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using NUnit.Framework;
using AltTester.AltTesterUnitySDK.Driver;

public class #SCRIPTNAME#
{ //Important! If your test file is inside a folder that contains an .asmdef file, please make sure that the assembly definition references NUnit.
public AltDriver altDriver;
//Before any test it connects with the socket
[OneTimeSetUp]
public void SetUp()
{
altDriver =new AltDriver();
}

//At the end of the test closes the connection with the socket
[OneTimeTearDown]
public void TearDown()
{
altDriver.Stop();
}

[Test]
public void Test()
{
//Here you can write the test
}

}
7 changes: 7 additions & 0 deletions Assets/AltTester/Editor/DefaultTestExample.txt.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/AltTester/Editor/Logging.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions Assets/AltTester/Editor/Logging/EditorLogManager.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
Copyright(C) 2023 Altom Consulting

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andresilveirah @bohdan-go-wombat are we okay with adding GNU-licensed software to our repo?

*/

using System;
using AltTester.AltTesterUnitySDK.Driver.Logging;
using NLog;
using NLog.Layouts;

namespace AltTester.AltTesterUnitySDK.Editor.Logging
{
public class EditorLogManager
{
public static LogFactory Instance { get { return instance.Value; } }
private static readonly Lazy<LogFactory> instance = new Lazy<LogFactory>(buildLogFactory);

private static LogFactory buildLogFactory()
{
var config = new NLog.Config.LoggingConfiguration();
var unitylog = new UnityTarget("AltEditorUnityTarget")
{
Layout = Layout.FromString("${longdate}|Editor|${level:uppercase=true}|${message}"),
};
config.AddRule(LogLevel.Debug, LogLevel.Fatal, unitylog);

LogFactory logFactory = new LogFactory
{
Configuration = config,
AutoShutdown = true
};

return logFactory;
}
}
}
11 changes: 11 additions & 0 deletions Assets/AltTester/Editor/Logging/EditorLogManager.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/AltTester/Editor/Scripts.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading