Taking a screenshot with AltTester

61 views
Skip to first unread message

jeb

unread,
Jun 8, 2023, 4:27:55 PM6/8/23
to AltTester - UI test automation tool for gaming
Using the notes from AltTester I have come up with this way to save screenshots.  Unity does not like this format.  What am I missing?

//screenshot
[Test]
public void TestGetScreenshot()
{
    var path="delete2.png";
    altDriver.GetPNGScreenshot(C:\Documents);
    FileAssert.Exists(C:\Documents);
}

poienar.robert.adam

unread,
Jun 9, 2023, 12:26:43 AM6/9/23
to jeb, AltTester - UI test automation tool for gaming

Hi

 

You need to add also the file name that you have in your path variable to the command.

altDriver.GetPNGScreenshot(@”D:\”+path); for example should work. Also make sure that you have the right to create files in the location you want your screenshots

--
You received this message because you are subscribed to the Google Groups "AltTester - UI test automation tool for gaming" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alttesterforu...@altom.com.
To view this discussion on the web visit https://groups.google.com/a/altom.com/d/msgid/alttesterforum/0372fc3f-1f43-483a-a06d-42c0f2417faan%40altom.com.

 


Virus-free.www.avast.com
Reply all
Reply to author
Forward
0 new messages