Agent test run

Ask general questions here.
SanMan
Posts: 186
Joined: Tue Apr 13, 2010 9:59 am

Agent test run

Post by SanMan » Thu Dec 13, 2018 6:53 am

Now got the Agent connection working and managed to run very basic web page validation test.

For now I have made & run my cases on local laptop.

If I now try to run these cases on Agent, should I fix these cases so that there are no reference to some test data found on my local PC (C:\myPC...) or is the all data in the test suite packet to *.zip file and then run on the Agent?

Should I copy all the testdata (*.xls, *.txt) to Agent machine so that testcases can be run?

EDIT:

I tried to set this testfile.xlsx file option => Copy to output directory = Always

But when run test with Agent, I got this report:

Failed to get rows from data source: The Excel file with name 'C:\Users\tester\Documents\Ranorex\RanorexStudio Projects\..\Testdata\testfile.xlsx' could not be found.

SanMan
Posts: 186
Joined: Tue Apr 13, 2010 9:59 am

Re: Agent test run

Post by SanMan » Fri Dec 14, 2018 7:27 am

Found discussion about similar problems here:

local-build-is-different-from-remote-build-t11466.html

Should the system work like this:

1. Add test file to project (Copy to output directory = Always)
2. Built the solution with Ranorex Studio
3. Select Agent on the list and run

=> Should this be enough that project is run on Agent PC?

McTurtle
Posts: 227
Joined: Thu Feb 23, 2017 10:37 am
Location: Benedikt, Slovenia

Re: Agent test run

Post by McTurtle » Mon Dec 17, 2018 3:48 pm

Hello SanMan,

You should select the "Copy file to project" option in "Manage data sources" and not the one in the properties of the file:
CopyFileToProject.png
CopyFileToProject.png (15.57 KiB) Viewed 116 times
Can you remove the file from the project and add it in this way? Does this help?

Regards,
McTurtle

SanMan
Posts: 186
Joined: Tue Apr 13, 2010 9:59 am

Re: Agent test run

Post by SanMan » Tue Dec 18, 2018 11:10 am

Hi McTurtle,

thank you very much!! Now it works

McTurtle
Posts: 227
Joined: Thu Feb 23, 2017 10:37 am
Location: Benedikt, Slovenia

Re: Agent test run

Post by McTurtle » Wed Dec 19, 2018 12:40 pm

Hey,

I'm glad that I could help ;)

Regards,
McTurtle