Moving Tests Between Folders

16 posts, 0 answers
  1. Ashleigh L
    Ashleigh L avatar
    113 posts
    Member since:
    Jun 2012

    Posted 21 Jun 2012 Link to this post

    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.

  2. Jonathan
    Jonathan avatar
    23 posts
    Member since:
    Jan 2012

    Posted 25 Jun 2012 Link to this post

    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
  3. Ashleigh L
    Ashleigh L avatar
    113 posts
    Member since:
    Jun 2012

    Posted 25 Jun 2012 Link to this post

    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.
  4. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 26 Jun 2012 Link to this post

    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
  5. Ashleigh L
    Ashleigh L avatar
    113 posts
    Member since:
    Jun 2012

    Posted 09 Jul 2012 Link to this post

    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.
  6. Reddy
    Reddy avatar
    23 posts
    Member since:
    Jul 2012

    Posted 13 Sep 2012 Link to this post

    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
  7. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 17 Sep 2012 Link to this post

    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
  8. Alan
    Alan avatar
    6 posts
    Member since:
    Aug 2011

    Posted 25 Sep 2012 Link to this post

    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!
  9. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 28 Sep 2012 Link to this post

    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
  10. Alan
    Alan avatar
    6 posts
    Member since:
    Aug 2011

    Posted 05 Oct 2012 Link to this post

    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
  11. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 09 Oct 2012 Link to this post

    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
  12. Steve
    Steve avatar
    4 posts
    Member since:
    Sep 2010

    Posted 14 Feb 2013 Link to this post

    what was the outcome of the webex? We are also having issues moving folders and tests
  13. Alan
    Alan avatar
    6 posts
    Member since:
    Aug 2011

    Posted 14 Feb 2013 Link to this post

    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
  14. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 18 Feb 2013 Link to this post

    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
  15. Mark
    Mark avatar
    1 posts
    Member since:
    Oct 2017

    Posted 13 Jun Link to this post

    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.
  16. Vera
    Admin
    Vera avatar
    0 posts

    Posted 14 Jun Link to this post

    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!
Back to Top