x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to specify which test the automation tool should run

Hello

Currently I am working on Tests with the ATF_Game flag. I need this kind of test because I want to test some interaction with the world. I have 2 main issues with this kind of tests.

First of all it seems to be impossible to run these tests in Editor + SessionFrontend. The reason might be, that this kind of tests is mend to ensure safe cooking and packaging. It would be nice if the Frontend would be capable of running this kind of tests. Maybe I am wrong and this works already. In that case please tell me how.

The second and more pressures issue is that I don't know how to specify the tests I want to run. With the following batch line I can run all the tests, including my custom made tests, but also including a ton of predefined tests. I want to run my own tests only.

  start "Testing" "%UE4EnginePath%\Build\BatchFiles\RunUAT.bat" BuildCookRun -project=%ProjectPath%\LivingKingdoms.uproject -run -RunAutomationTests -unattended -nullrhi -NoP4

Additionally I would like to know what -nullrhi and -NoP4 do or where I can find a list of available commands.

Thank you in advance! Mario

Product Version: UE 4.10
Tags:
more ▼

asked Nov 20 '15 at 04:44 PM in Using UE4

avatar image

Maxxomatik
73 7 9 11

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I found a solution to this. It is rather simple. The command is below.

 start "Testing" "%UE4EnginePath%\Build\BatchFiles\RunUAT.bat" BuildCookRun -project=%ProjectPath%\MyGame.uproject -run -RunAutomationTest=Mygame.Subsytsem -unattended -nullrhi -NoP4

or

 Editor.exe "%ProjectPath%\MyGame.uproject" -run -RunAutomationTest=Mygame.Subsytsem -unattended -nullrhi -NoP4

You can use a part of the prettyname after this -RunAutomationTest= If you have a Test with prettyname MyGame.SubsystemA.FunctionF, you can use any MyGame, MyGame.SubsystemA or the fully Name to decide wheter you want to run all MyGame Tests, the SubsystemA or only the FunctionF.

However, the Program won't close on its own like when you use -RunAutomationTests.

I still don't know what the parameters -nullrhi -NoP4 do exactly. They are handed in Editor.exe and I lost track there.

more ▼

answered Nov 25 '15 at 05:01 PM

avatar image

Maxxomatik
73 7 9 11

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question