This is a migrated thread and some comments may be shown as answers.

Failed 'run test as step'

5 Answers 95 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rich
Top achievements
Rank 2
Rich asked on 30 Oct 2010, 11:05 PM
I have an application that needs a user to login, so I created a login test and for every other test, I add a step to run the 'login test'.

This works great in Quick Run mode, but if I try to run the set of tests, all tests fail except the login test.  The steps are failing because it cannot find the Login test.

It appears to be looking for a specific run instance of the test instead ot the test definition.

TestResults\winslorj_ARCRS1 2010-10-30 17_44_33\Out\001_Login.aii'

How can I get a full solution test run to execute the login test as a step?

Thanks,
Rich Winslow

See the test results below: 

Overall Result: Fail
--------------------------------------------------
'10/30/2010 5:44:46 PM' - 'Fail' : 1. Execute test '001_Login'
InnerException:
System.IO.FileNotFoundException: Unable to find test 'c:\code\ProcessAlertTest\TestResults\winslorj_ARCRS1 2010-10-30 17_44_33\Out\001_Login.aii'
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteTestInCurrentContext(String relativeTestPath)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.ExecuteTestActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
--------------------------------------------------
'10/30/2010 5:44:46 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
--------------------------------------------------
'10/30/2010 5:44:46 PM' - Overall Result: Fail
--------------------------------------------------

5 Answers, 1 is accepted

Sort by
0
Accepted
Keaegan
Telerik team
answered on 01 Nov 2010, 09:27 PM
Hi Rich Winslow,

This error has two causes that we can look at, the first of which is fairly simple:
  1. Open the Project/Solution
  2. In the Solution Explorer, locate your test settings file (local.testsettings unless you made a new one)
  3. Right-Click the item
  4. Single-Click Open
  5. Click the Deployment tab
  6. Check the box for Enable Deployment
  7. Click Save

After you do the above, re-test your issue. If you are still getting the same error message, we have also found that this error string is generated if the targeted test (the one being targeted for  your "Test as Step" step) is no longer present in the targeted file path. I was able to re-create your error message by doing the following:
  1. Creating a new Project/Solution
  2. Creating a new test project within the Solution
  3. Creating a new test within the project
  4. Created an additional new test, and told it to run the first test first.
  5. Save and close Studio
  6. Move the referenced test out of your appropriate folder (within your documents)

By doing the above, I was able to get the exact syntax for your error (less the target directory for the test that was missing, mine points to a file on my computer).

When you select to "Test as a Step", it uses the previously made test.aii file as an individual step, so the file has to be kept in place for the test to still see it. In order to get the project to proceed again, you will need to put the .aii file back in place or re-create the test again.

If the file is still present and you are getting this type of error messages, the original test (that you target for test as step) may be damaged and need to be replaced. In this case, please provide us with a copy of the project in question so that we can review your Project and assist further.


Greetings,
Keaegan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Keaegan
Telerik team
answered on 16 Nov 2010, 11:56 PM

Hi Rich,

We haven't heard back from you on this thread since your initial contact. I wanted to touch base with you to find out if the previous steps resolved your issue for you, and if it is okay to close your ticket.

We will look for a reply from you over the next couple of days to see if you are still needing assistance with this issue. Otherwise we will close this ticket for you.

Best wishes,
Keaegan
the Telerik team

See What’s New in WebUI Test Studio’s Q3 Release – Friday, November 19th, 2010 at 11am EST – Register Today!
0
Rich
Top achievements
Rank 2
answered on 20 Nov 2010, 04:11 PM
Your suggestions worked for me.

Thanks,
Rich
0
Phil
Top achievements
Rank 1
answered on 22 Apr 2011, 09:16 PM
I'm using VS2008 and cannot find the tab your referring to.  Is there some menu I'm missing? 

I have 3 tests. 

MyTestContainer.aii:
#1 Login test as step
#2 Validate some text with steps
#3 Logout test as step

The #1 test always runs and the others fail and are ignored.  What's going on?
0
Stoich
Telerik team
answered on 25 Apr 2011, 01:53 PM
Hi Rich,
   You have to add the settings file on the Solution level. Here's a video that demonstrates how to do it and access the Deployment tab described by Keaegan:
http://www.screencast.com/users/TelerikTesting/folders/Jing/media/d1a67f2c-92c0-4e0b-9377-f2cb5334c11d

Please let me know whether enabling Deployment resolved the issue for you or you require additional assistance.

Hope to hear from you soon.

Best wishes,
Stoich
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Rich
Top achievements
Rank 2
Answers by
Keaegan
Telerik team
Rich
Top achievements
Rank 2
Phil
Top achievements
Rank 1
Stoich
Telerik team
Share this question
or