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

write test data to excel

1 Answer 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
soumya
Top achievements
Rank 1
soumya asked on 14 Nov 2016, 12:29 PM

I am getting the below error in the coded step when i compile 

 

 

Error:error CS1705: Assembly 'ArtOfTest.WebAii.Design, Version=2016.3.928.0, Culture=neutral, PublicKeyToken=4fc62bbc3827ab1d' uses 'Telerik.TestStudio.Interfaces, Version=2016.3.928.0, Culture=neutral, PublicKeyToken=b9f4c4e36181b3de' which has a higher version than referenced assembly 'Telerik.TestStudio.Interfaces, Version=2013.1.1002.0, Culture=neutral, PublicKeyToken=b9f4c4e36181b3de'

 

 

 

The code i am using is please help

 

using Telerik.TestingFramework.Controls.KendoUI;
using Telerik.WebAii.Controls.Html;
using Telerik.WebAii.Controls.Xaml;
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;

using ArtOfTest.Common.UnitTesting;
using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.Controls.HtmlControls;
using ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts;
using ArtOfTest.WebAii.Design;
using ArtOfTest.WebAii.Design.Execution;
using ArtOfTest.WebAii.ObjectModel;
using ArtOfTest.WebAii.Silverlight;
using ArtOfTest.WebAii.Silverlight.UI;

namespace EBS_ITSM
{

    public class Write_to_Excelsheet : BaseWebAiiTest
    {
        #region [ Dynamic Pages Reference ]

        private Pages _pages;

        /// <summary>
        /// Gets the Pages object that has references
        /// to all the elements, frames or regions
        /// in this project.
        /// </summary>
        public Pages Pages
        {
            get
            {
                if (_pages == null)
                {
                    _pages = new Pages(Manager.Current);
                }
                return _pages;
            }
        }

        #endregion
        
        // Add your test methods here...
    
        [CodedStep(@"New Coded Step")]
        public void Write_to_Excelsheet_CodedStep()
        {
            string Result = "D:\\Bad Resume\\EBS_ITSM-POC\\EBS_ITSM\\EBS_ITSM\\Data\\ITSM_Data_Sheet";
string cur_dir = this.ExecutionContext.DeploymentDirectory; 
// Directory form which the code is executed
string file_name = this.ExecutionContext.Test.DataInfo.DataProvider; 
// The name of the Excel file
string data_table = this.ExecutionContext.Test.DataInfo.DataTable; // Sheet name in the Excel file that is bound
int data_iteration = Convert.ToInt16(Data["Sl_No"]) + 1;    
string column_name = "Change_ID";                 
Utility.Write_Results_To_Excel(cur_dir,file_name, data_table, column_name, Result, data_iteration);

        }
    }
}

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 16 Nov 2016, 12:43 PM
Hello Soumya,

Please try out my suggestion I've given in this forum post.

Hope that helps.

Regards,
Boyan Boev
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
soumya
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or