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

Moving Tests Between Folders

15 Answers 145 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ashleigh L
Top achievements
Rank 1
Ashleigh L asked on 21 Jun 2012, 06:21 PM
I have a folder structure similar to this:
Admin
 - Login
 - Account
    - View project

Where Admin and Account are folders, and Login and View project are tests. The first step in the View Project test is the Login test (using Test as Step). When I move View project to another folder (ie. Misc), I am no longer able to run the View project test, which fails on the first step with the following error:

InnerException:
System.IO.FileNotFoundException: Unable to find test 'C:\path\path\path\Admin\Login.tstest'
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteTestInCurrentContext(String relativeTestPath)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

Do I need to redo the Test as Step steps every time I move a test between folders? Why doesn't the application know where it's been moved to automatically?

Edit: When I re-add my Test as Step, it still returns the error about not being able to find it. My folder structure is actually 3 deep at the point of the View project test, and this only occurred after I moved it into a more nested folder.

15 Answers, 1 is accepted

Sort by
0
Jonathan
Top achievements
Rank 1
answered on 25 Jun 2012, 06:06 PM
I've had the same problem and as a rule of thumb, I try not to move anything.  However, this is a new project for me too and sometimes we do move things.  I found that the test as step function is what messes everything up on my end. If you use the test as step function to call a script, it records the file structure of where that script is located.  If you then move that script (the one you were calling in another), it then fails.  To fix it, I had to redo the test as step functions on scripts that used them. 

Hope that helps.

Jonathan
0
Ashleigh L
Top achievements
Rank 1
answered on 25 Jun 2012, 09:46 PM
See the weird thing is it coped w/ moving between folders just fine previously - it only seems to have a problem when the structure is a certain level deep. I'd just like confirmation that this is a known issue/limitation so I can work it into our training materials/documentation.
0
Anthony
Telerik team
answered on 26 Jun 2012, 05:05 PM
Hello Shimmoril,

I cannot confirm this behavior. In my testing, moving a parent and child test into folders nested several layers deep never caused the error you mentioned. The Test as Step path was always updated properly.

We'll need more precise reproduction steps to investigate this further.

Regards,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Ashleigh L
Top achievements
Rank 1
answered on 09 Jul 2012, 05:28 PM
I got pulled away from this, but thanks for your response Anthony.

After further testing on my end, it looks like it might actually have been due to renaming folders, rather than nesting them. I wasn't able to duplicate it again, but the errors I was getting suggested the tool was looking in the old folder name, not the new one.

I'll keep an eye on it going forward, and let you know if I encounter any more weirdness.
0
Reddy
Top achievements
Rank 1
answered on 13 Sep 2012, 12:28 PM
I seem to have encountered this problem. I created a folder under my projects section and have several tests in the folder. The folder also includes a test with a manual step to execute the other tests in the folder. When I run the parent script, i am getting an error

InnerException:
System.IO.FileNotFoundException: Unable to find test 'C:\Program Files (x86)\Telerik\Test Studio Projects\MPL_Project\..\PL 0001A 0909'
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteTestInCurrentContext(String relativeTestPath)
   at ArtOfTest.WebAii.Design.BaseWebAiiTest.ExecuteTest(String relativeTestPath)
   at Forms_Selection.Forms_Selection() in C:\Program Files (x86)\Telerik\Test Studio Projects\MPL_Project\Forms\Forms_Selection.tstest.vb:line 80


Any help would be appreciated.

Thanks,
Reddy
0
Plamen
Telerik team
answered on 17 Sep 2012, 08:21 AM
Hi Reddy,

I'm not sure what you mean by "The folder also includes a test with a manual step to execute the other tests in the folder". Can you please elaborate more on this? Can you provide us with step by step instructions on how to recreate the issue? A Jing video demonstrating the issue may also help us to better understand what is happening. 

Regards,
Plamen
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
0
Alan
Top achievements
Rank 2
answered on 25 Sep 2012, 06:31 PM
Hello, I have experienced this issue as well.  I have a driver script that calls other tests in the project.  At first, the other tests were at the root level of the project, then I decided to reorganize and group tests into folders.  I then executed the driver (still at the root level) and it failed on the steps where tests had been moved into the folders.  I had to re-add each test using Test As Step in order for those tests to work once again.  Is there a way that Test Studio can possibly update the test references automatically to avoid the rework?

This also made me think of another question about renaming the filename of the data source.  Understandably I would have to re-bind at the test file level, but what about individual steps within the test--would those data bindings be lost?

Thanks!
0
Plamen
Telerik team
answered on 28 Sep 2012, 04:00 PM
Hi Alan,

As you can see in this video, I wasn't able to reproduce the problem. Am I doing anything differently? What else do I need to do to reproduce this problem?

On your second question, changing the name of the data source file will not affect individual steps. See this short video for your reference.

Regards,
Plamen
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
0
Alan
Top achievements
Rank 2
answered on 05 Oct 2012, 03:44 PM
Thanks for the investigation, Plamen.  We are still experiencing these issues, so we removed the folder structure and still ran into the same issues.  We will set up a WebEx with Support to walk through what we are experiencing.

Alan
0
Plamen
Telerik team
answered on 09 Oct 2012, 03:15 PM
Hi Alan,

We can schedule an online screen sharing session and look at the issue directly on your machine. We use GoToMeeting. Please suggest a date and time you are available for this and I'll setup the meeting. Keep in mind that I'm in Sofia, Bulgaria, which is UTC +3:00.

Kind regards,
Plamen
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
0
Steve
Top achievements
Rank 1
answered on 14 Feb 2013, 06:12 PM
what was the outcome of the webex? We are also having issues moving folders and tests
0
Alan
Top achievements
Rank 2
answered on 14 Feb 2013, 07:24 PM
Hey Steve, 

I unfortunately didn't set up a WebEx given our current project cycle timeline.  Our workaround at the time was to create a brand new script and copy/paste the steps from the old script into the new empty script.  We have not tried this functionality since October.  The only setback to our work around is when pasting, all steps are activated even if they were originally deactivated in the script where we copied from.  If you would benefit from resolving this specific issue, I encourage you to set up a WebEx with Plamen.

Good luck!
Alan
0
Plamen
Telerik team
answered on 18 Feb 2013, 04:51 PM
Hello Steve,

I am sorry to hear you are also experiencing the issue. Unfortunately we haven't been able to reproduce this on our side. Which version of Test Studio are you currently using? Can you please provide a video demonstrating the exact steps to follow in order to reproduce the issue? Jing is a free and decent screen recorder.

We can also schedule a GoToMeeting and look at the problem on your machine. If you chose this course of action, just let me know your timezone and your availability and I'll setup the meeting. Before the meeting please ensure that you're using the latest version of Test Studio(2012.2.1317), just to be sure that you're not experiencing an issue that is already fixed.

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Mark
Top achievements
Rank 1
answered on 13 Jun 2018, 08:19 PM
I am having this same issue but  I didn't see any response with any kind of resolution.  Basically what Ive done is copied a folder from one project and pasted it into another project essentially moving the scripts from that folder into the new project but now I am having to re-insertany tests as a step as they keep looking for their old location... also, Im finding that scripts are not saving as I think when I try to save they are trying to save in the old location for which this new project does not have access to...  any assistance would be greatly appreciated.
0
Vera
Telerik team
answered on 14 Jun 2018, 01:53 PM
Hello Mark,

Thank you for contacting Telerik Support. 

Since you have already submitted Support Thread regarding the same issue we would like to kindly ask you to refer to it for detailed information. 

Thank you!

Regards,
Vera
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Ashleigh L
Top achievements
Rank 1
Answers by
Jonathan
Top achievements
Rank 1
Ashleigh L
Top achievements
Rank 1
Anthony
Telerik team
Reddy
Top achievements
Rank 1
Plamen
Telerik team
Alan
Top achievements
Rank 2
Steve
Top achievements
Rank 1
Mark
Top achievements
Rank 1
Vera
Telerik team
Share this question
or