Test View execution of tests not find data file

11 posts, 0 answers
  1. Beckie
    Beckie avatar
    7 posts
    Member since:
    Nov 2010

    Posted 03 Dec 2010 Link to this post

    I have an excel file attached as a data source on one of my tests.  The quick execution finds & utilizes the data without problem, however when running in debug mode, it can't find the data file.   The path it is looking for is slightly off.  Actual:  JLDW_TestUI\JLDW_TestUI\Data, but it is trying to get it at JLDW_TestUI\Data.     I tried looking at all kinds of settings trying to figure out how to correct the path, but no luck.   Help! 
  2. Keaegan
    Admin
    Keaegan avatar
    126 posts

    Posted 03 Dec 2010 Link to this post

    Hi Beckie,

    We tried to duplicate your symptoms but were unable to do so. The best way for us to assist further is for us to get a copy of the project itself (in .zip/.rar format). We won't need access to your site/development area, just the project itself so we can review it more deeply to see why it is pointing to the wrong area.

    We'll look for your reply with the project attached for us to review it and help determine why the correct file path is not being found when you run the test through a test list.

    Kind regards,
    Keaegan
    the Telerik team

    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
  3. Beckie
    Beckie avatar
    7 posts
    Member since:
    Nov 2010

    Posted 13 Dec 2010 Link to this post

    I am attaching a zip file of my project.  The retrograde\retro_create.aii is using an excel file for the tests.  It worked in test view execution after I added the data directory to the Deployment directories in the testrunconfig file. I created retrograde\runall.aii, which includes retro_create.aii as a test step, but it won't run in either quick test execution nor in the test view execution.  I included a text file called runall_error that shows the error...basically it can't find the data\ directory, as indicated in my first post.  I created a new test project, thinking it might have to do with something I changed in one of the setting files, but this new project did not have any of the settings tampered with, so that is not the issue.

    Please take a look and let me know what you find.  Thanks for all your help!  I can't go forward with my tests until I get this resolved.
  4. Beckie
    Beckie avatar
    7 posts
    Member since:
    Nov 2010

    Posted 14 Dec 2010 Link to this post

    I did a little more research this morning on this problem, and found that if I comment out all of the codebehind steps in the retro_create, the runall will run the retro_create w/ its non-coded steps.  As soon as I uncomment any of the codebehind steps on the retro_create, runall cannot run the retro_create test step.....???    I created another simple test (with same excel file attached) that just navigated to a url, then a second test that used this first test as a step.  Ran it no problem.  Converted the navigation step in the simple first test to a codebehind step, and then the second test could no longer run the first step...same directory not found error.
  5. Keaegan
    Admin
    Keaegan avatar
    126 posts

    Posted 16 Dec 2010 Link to this post

    Hello Beckie,

    In the copy of the project provided it looks like an entire folder (administration) had its' contents removed. Viewing the folder within Visual Studio, there are a number of tests that appear with warning symbols as they cannot be found but are referenced elsewhere within the solution. With these files missing I am getting an error with execution no matter the method involved with attempting to get the WebAii test to execute.

    error CS1504: Source file 'C:\Users\<username>\Documents\Visual Studio 2008\Projects\JLDW_Telerik_Tests\JLDW_Telerik_Tests\Administration\BarCodePrinter_UpdateDeleteList.aii.cs' could not be opened ('Unspecified error ')

    This usually means that the folders contents were deleted via Windows Explorer. After Excluding the folder from the project, all of the contained .cs files were no longer referenced and I did not see compile issues with executing tests. If there are no coded steps within a test, it does not compile the code-behind files found in the project (which is why you found the 2nd feedback for tests without code). Until the administration folder is excluded it will be listed within the .csproj file for the test project. After excluding it from the test, the files/folders should no longer be listed as Include within the .csproj file.

    In visual studio, locate the Administration folder within the Solution Explorer and right-click it, then choose Exclude from Project. After doing so, please re-test the issue. If you are still experiencing the symptom, please upgrade to our

  6. Beckie
    Beckie avatar
    7 posts
    Member since:
    Nov 2010

    Posted 16 Dec 2010 Link to this post

    Sorry...I had to remove all the tests in the Administration folder from my zip file, once I saw it was too large to upload.  I cannot upload the file from work, due to work constraints, so did not have access to the program from home to remove the Administration tests properly.

    I have been working with the project some more, and have resolved some of this issues, but not all.  It appears the TestAssemblyPath setting in the .aii files were different...some pointing to bin\, some pointing to bin\Debug.   Still having some problems running other tests within tests, but the zip file is too large to upload the whole project to this forum.  Will do some research and post if problems cannot be resolved.  -Appears- to not be an attachment issue.

    Your post is missing the link to whatever upgrade I should be getting.  Thanks so much for your help and time...we really appreciate your help!!
  7. Keaegan
    Admin
    Keaegan avatar
    126 posts

    Posted 16 Dec 2010 Link to this post

    Hi Beckie,

    The link is for the Q3 - SP1 edition of our software. I apologize that the last lines were not included in the outgoing email. 

    Also, I sent you an invitation to my personal Dropbox. The folder sent will only be accessible by you and I, so you can drop off the entire project in this folder for me to assist with reviewing it further. I'll be more than happy to assist in what ways I can.

    Kind regards,
    Keaegan
    the Telerik team

    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
  8. Beckie
    Beckie avatar
    7 posts
    Member since:
    Nov 2010

    Posted 05 Jan 2011 Link to this post

    Sorry for the delay...out for the holidays, and just getting my head back into this.  I just uploaded my project to the dropbox last night.  Problem persisting...in nutshell looks like I am ultimately having problems adding an existing test (that has a code behind) as a step in another test.   I included the error that comes up in a txt file on the zip file uploaded.  Thanks for any assistance you can provide!! 
  9. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 11 Jan 2011 Link to this post

    Hi Beckie,

    I apologize for the delay responding to you. Keaegan is out sick today and was yesterday as well. You can either wait for Keaegan to return (should be back tomorrow) or I can pickup where he left off. I don't have access to his dropbox unfortunately. I do have my own. If you can upload the same file to my dropbox I can pickup in Keaegan's absence. Let me know what you prefer to do.

    Regards,
    Cody
    the Telerik team
    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
  10. Beckie
    Beckie avatar
    7 posts
    Member since:
    Nov 2010

    Posted 12 Jan 2011 Link to this post

    Cody -

    Thanks for the reply, and awesome customer service!  Unfortunately I have to upload the code from home.  If Keaegan, is out today or unable to get to this soon, please let me know, as well as provide a link to drop box the code to you.

    I appreciate your help!!
    -beckie
  11. Keaegan
    Admin
    Keaegan avatar
    126 posts

    Posted 12 Jan 2011 Link to this post

    Hello Beckie,

    I apologize vehemently for the delay in getting back to you. I didn't find issue with running the specified test (runall.aii) if I built the solution first. I wasn't able to build the provided solution until I modified the following two lines in Retro_Validate_Requests.aii.cs:

    Pages.REPORTDETAILS_0_0.TF_998_TAB.Click(false);
     
    Pages.REPORTDETAILS_0_0.TF_998_TAB.Click(false);

    The modification done was to comment these two lines out. After commenting them out in the specified code-behind file the build completed successfully and the test ran without creating the error (albeit it was not able to execute the full test). 

    The reason for this is that the software will still compile the code-behind files in the same folder, but will only call the one currently in use. This error is hitting during compile time for the execution process, so the above and possibly some other items are causing issue.

    Open the project and try to build it. When you do, the error list will point each error out in the error list. Locate each of these and either comment out the steps or add in the necessary information to allow the code-behind step to compile.


    Kind regards,
    Keaegan
    the Telerik team

    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!