Class FunctionalTest
Inheritance
System.Object
FunctionalTest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: UE4DotNet.dll
Syntax
public class FunctionalTest : Actor
Properties
|
Improve this Doc
View Source
AutoDestroyActors
Declaration
public ObjectArrayField<Actor> AutoDestroyActors { get; }
Property Value
|
Improve this Doc
View Source
bIsEnabled
Declaration
public bool bIsEnabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bIsRunning
Declaration
public bool bIsRunning { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bWarningsAsErrors
Declaration
public bool bWarningsAsErrors { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static FunctionalTest DefaultObject { get; }
Property Value
|
Improve this Doc
View Source
ObservationPoint
Allows you to specify another actor to view the test from.
Declaration
public Actor ObservationPoint { get; set; }
Property Value
|
Improve this Doc
View Source
PreparationTimeLimit
The Test's time limit for preparation, this is the time it has to return true when checking IsReady(). '0' means no limit.
Declaration
public float PreparationTimeLimit { get; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
RandomNumbersStream
A random number stream that you can use during testing.
Declaration
public RandomStream RandomNumbersStream { get; set; }
Property Value
Remarks
|
Improve this Doc
View Source
RenderComp
Declaration
public FuncTestRenderingComponent RenderComp { get; set; }
Property Value
|
Improve this Doc
View Source
SpriteComponent
Declaration
public BillboardComponent SpriteComponent { get; set; }
Property Value
|
Improve this Doc
View Source
StaticClass
Declaration
public static Class StaticClass { get; }
Property Value
|
Improve this Doc
View Source
TestName
Declaration
public TextRenderComponent TestName { get; set; }
Property Value
|
Improve this Doc
View Source
TimeLimit
Test's time limit. '0' means no limit
Declaration
public float TimeLimit { get; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
TotalTime
Declaration
public float TotalTime { get; }
Property Value
Type |
Description |
System.Single |
|
Methods
|
Improve this Doc
View Source
AddError(String)
Declaration
public void AddError(string Message)
Parameters
Type |
Name |
Description |
System.String |
Message |
|
|
Improve this Doc
View Source
AddRerun(Name)
Causes the test to be rerun for a specific named reason.
Declaration
public void AddRerun(Name Reason)
Parameters
Type |
Name |
Description |
Name |
Reason |
|
|
Improve this Doc
View Source
AddWarning(String)
Declaration
public void AddWarning(string Message)
Parameters
Type |
Name |
Description |
System.String |
Message |
|
|
Improve this Doc
View Source
AssertEqual_Bool(Boolean, Boolean, String, UObject)
Assert that two bools are equal
@
Declaration
public bool AssertEqual_Bool(bool Actual, bool Expected, string What, UObject ContextObject)
Parameters
Type |
Name |
Description |
System.Boolean |
Actual |
|
System.Boolean |
Expected |
|
System.String |
What |
|
UObject |
ContextObject |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AssertEqual_Float(Single, Single, String, Single, UObject)
Assert that two floats are equal within tolerance between two floats.
Declaration
public bool AssertEqual_Float(float Actual, float Expected, string What, float Tolerance, UObject ContextObject)
Parameters
Type |
Name |
Description |
System.Single |
Actual |
|
System.Single |
Expected |
|
System.String |
What |
|
System.Single |
Tolerance |
|
UObject |
ContextObject |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AssertEqual_Int(Int32, Int32, String, UObject)
Assert that two ints are equal
@
Declaration
public bool AssertEqual_Int(int Actual, int Expected, string What, UObject ContextObject)
Parameters
Type |
Name |
Description |
System.Int32 |
Actual |
|
System.Int32 |
Expected |
|
System.String |
What |
|
UObject |
ContextObject |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AssertEqual_Name(Name, Name, String, UObject)
Assert that two FNames are equal
@
Declaration
public bool AssertEqual_Name(Name Actual, Name Expected, string What, UObject ContextObject)
Parameters
Type |
Name |
Description |
Name |
Actual |
|
Name |
Expected |
|
System.String |
What |
|
UObject |
ContextObject |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AssertEqual_Rotator(Rotator, Rotator, String, Single, UObject)
Assert that the component angles of two rotators are all equal within a small tolerance.
Declaration
public bool AssertEqual_Rotator(Rotator Actual, Rotator Expected, string What, float Tolerance, UObject ContextObject)
Parameters
Type |
Name |
Description |
Rotator |
Actual |
|
Rotator |
Expected |
|
System.String |
What |
|
System.Single |
Tolerance |
|
UObject |
ContextObject |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AssertEqual_String(String, String, String, UObject)
Assert that two Strings are equal.
Declaration
public bool AssertEqual_String(string Actual, string Expected, string What, UObject ContextObject)
Parameters
Type |
Name |
Description |
System.String |
Actual |
|
System.String |
Expected |
|
System.String |
What |
|
UObject |
ContextObject |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AssertEqual_TraceQueryResults(TraceQueryTestResults, TraceQueryTestResults, String, UObject)
Assert that two TraceQueryResults are equal.
Declaration
public bool AssertEqual_TraceQueryResults(TraceQueryTestResults Actual, TraceQueryTestResults Expected, string What, UObject ContextObject)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Assert that two transforms are (components memberwise - translation, rotation, scale) equal within a small tolerance.
Declaration
public bool AssertEqual_Transform(Transform Actual, Transform Expected, string What, float Tolerance, UObject ContextObject)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AssertEqual_Vector(Vector, Vector, String, Single, UObject)
Assert that two vectors are (memberwise) equal within a small tolerance.
Declaration
public bool AssertEqual_Vector(Vector Actual, Vector Expected, string What, float Tolerance, UObject ContextObject)
Parameters
Type |
Name |
Description |
Vector |
Actual |
|
Vector |
Expected |
|
System.String |
What |
|
System.Single |
Tolerance |
|
UObject |
ContextObject |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AssertFalse(Boolean, String, UObject)
Assert that a boolean value is false.
Declaration
public bool AssertFalse(bool Condition, string Message, UObject ContextObject)
Parameters
Type |
Name |
Description |
System.Boolean |
Condition |
|
System.String |
Message |
|
UObject |
ContextObject |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AssertIsValid(UObject, String, UObject)
Assert that a UObject is valid
@
Declaration
public bool AssertIsValid(UObject UObject, string Message, UObject ContextObject)
Parameters
Type |
Name |
Description |
UObject |
UObject |
|
System.String |
Message |
|
UObject |
ContextObject |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AssertNotEqual_Rotator(Rotator, Rotator, String, UObject)
Assert that the component angles of two rotators are all not equal within a small tolerance.
Declaration
public bool AssertNotEqual_Rotator(Rotator Actual, Rotator NotExpected, string What, UObject ContextObject)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AssertNotEqual_String(String, String, String, UObject)
Assert that two Strings are not equal.
Declaration
public bool AssertNotEqual_String(string Actual, string NotExpected, string What, UObject ContextObject)
Parameters
Type |
Name |
Description |
System.String |
Actual |
|
System.String |
NotExpected |
|
System.String |
What |
|
UObject |
ContextObject |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Assert that two transforms are (components memberwise - translation, rotation, scale) not equal within a small tolerance.
Declaration
public bool AssertNotEqual_Transform(Transform Actual, Transform NotExpected, string What, UObject ContextObject)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AssertNotEqual_Vector(Vector, Vector, String, UObject)
Assert that two vectors are (memberwise) not equal within a small tolerance.
Declaration
public bool AssertNotEqual_Vector(Vector Actual, Vector NotExpected, string What, UObject ContextObject)
Parameters
Type |
Name |
Description |
Vector |
Actual |
|
Vector |
NotExpected |
|
System.String |
What |
|
UObject |
ContextObject |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AssertTrue(Boolean, String, UObject)
Assert that a boolean value is true.
Declaration
public bool AssertTrue(bool Condition, string Message, UObject ContextObject)
Parameters
Type |
Name |
Description |
System.Boolean |
Condition |
|
System.String |
Message |
|
UObject |
ContextObject |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AssertValue_DateTime(FDateTime, EComparisonMethod, FDateTime, String, UObject)
Declaration
public bool AssertValue_DateTime(FDateTime Actual, EComparisonMethod ShouldBe, FDateTime Expected, string What, UObject ContextObject)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AssertValue_Float(Single, EComparisonMethod, Single, String, UObject)
Declaration
public bool AssertValue_Float(float Actual, EComparisonMethod ShouldBe, float Expected, string What, UObject ContextObject)
Parameters
Type |
Name |
Description |
System.Single |
Actual |
|
EComparisonMethod |
ShouldBe |
|
System.Single |
Expected |
|
System.String |
What |
|
UObject |
ContextObject |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AssertValue_Int(Int32, EComparisonMethod, Int32, String, UObject)
Declaration
public bool AssertValue_Int(int Actual, EComparisonMethod ShouldBe, int Expected, string What, UObject ContextObject)
Parameters
Type |
Name |
Description |
System.Int32 |
Actual |
|
EComparisonMethod |
ShouldBe |
|
System.Int32 |
Expected |
|
System.String |
What |
|
UObject |
ContextObject |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
FinishTest(EFunctionalTestResult, String)
Declaration
public void FinishTest(EFunctionalTestResult TestResult, string Message)
Parameters
|
Improve this Doc
View Source
GetCurrentRerunReason()
Returns the current re-run reason if we're in a named re-run.
Declaration
public Name GetCurrentRerunReason()
Returns
|
Improve this Doc
View Source
IsEnabled()
Declaration
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsRunning()
Declaration
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
LogMessage(String)
Declaration
public void LogMessage(string Message)
Parameters
Type |
Name |
Description |
System.String |
Message |
|
|
Improve this Doc
View Source
New(UObject, Name)
Spawn an object of this class
Declaration
public static FunctionalTest New(UObject obj = null, Name name = default(Name))
Parameters
Returns
|
Improve this Doc
View Source
RegisterAutoDestroyActor(Actor)
ACtors registered this way will be automatically destroyed (by limiting their lifespan)
Declaration
public void RegisterAutoDestroyActor(Actor ActorToAutoDestroy)
Parameters
Type |
Name |
Description |
Actor |
ActorToAutoDestroy |
|
|
Improve this Doc
View Source
SetTimeLimit(Single, EFunctionalTestResult)
Declaration
public void SetTimeLimit(float NewTimeLimit, EFunctionalTestResult ResultWhenTimeRunsOut)
Parameters
Events
|
Improve this Doc
View Source
IsReady
IsReady() is called once per frame after a test is run, until it returns true.
Declaration
public event FunctionalTest.IsReady_delegate IsReady
Event Type
|
Improve this Doc
View Source
OnAdditionalTestFinishedMessageRequest
On Additional Test Finished Message Request
Declaration
public event FunctionalTest.OnAdditionalTestFinishedMessageRequest_delegate OnAdditionalTestFinishedMessageRequest
Event Type
|
Improve this Doc
View Source
OnWantsReRunCheck
retrieves information whether test wants to have another run just after finishing
Declaration
public event FunctionalTest.OnWantsReRunCheck_delegate OnWantsReRunCheck
Event Type
|
Improve this Doc
View Source
ReceivePrepareTest
Prepare Test is fired once the test starts up, before the test IsReady() and thus before Start Test is called.
Declaration
public event FunctionalTest.ReceivePrepareTest_delegate ReceivePrepareTest
Event Type
|
Improve this Doc
View Source
ReceiveStartTest
Called once the IsReady() check for the test returns true.
Declaration
public event FunctionalTest.ReceiveStartTest_delegate ReceiveStartTest
Event Type
Operators
|
Improve this Doc
View Source
Implicit(IntPtr to FunctionalTest)
Convert from IntPtr to UObject
Declaration
public static implicit operator FunctionalTest(IntPtr p)
Parameters
Type |
Name |
Description |
System.IntPtr |
p |
|
Returns