Telerik Forums
Test Studio Forum
3 answers
96 views
Hi,

In one of the test step selects value From Drop down List. Now I have done a coded step to select value, which uses method 'selectitembytext'. But whenever I run my test, It shows me this error. "Account.tstest.cs: Line 201: (CS1061) 'ArtOfTest.WebAii.Controls.HtmlControls.HtmlInputText' does not contain a definition for 'SelectItemByText' and no extension method 'SelectItemByText' accepting a first argument of type 'ArtOfTest.WebAii.Controls.HtmlControls.HtmlInputText' could be found (are you missing a using directive or an assembly reference?)"

Can you help me to resolve this issue?

Thank you
Cody
Telerik team
 answered on 29 Jan 2014
1 answer
97 views
Hi,

In one of the test step selects value From Drop down List. Now I have done a coded step to select value, which uses method 'selectitembytext'. But whenever I run my test, It shows me this error. "Account.tstest.cs: Line 201: (CS1061) 'ArtOfTest.WebAii.Controls.HtmlControls.HtmlInputText' does not contain a definition for 'SelectItemByText' and no extension method 'SelectItemByText' accepting a first argument of type 'ArtOfTest.WebAii.Controls.HtmlControls.HtmlInputText' could be found (are you missing a using directive or an assembly reference?)"

Can you help me to resolve this issue?

Thank you
Boyan Boev
Telerik team
 answered on 29 Jan 2014
2 answers
45 views
Hi,

I am using telerik test studio for automated tests and have bindings from excel document; but there is a problem; When I changed the excel file from the path:  C:\Users\Username\Documents\Test Studio Projects\Data data in excel (contains URLs) doesn't changed while executing the automations.

I checked excel file , for trying deleted the excel but again takes the previous data! URL never changes.

Thanks,

Deniz
Boyan Boev
Telerik team
 answered on 29 Jan 2014
1 answer
133 views
Hello,

I am using Chrome and have a form where I enter an ID into a text box and press enter to query the data.
It records as

 Keyboard (KeyPress) - Enter (1 times) on 'PIDText'

However on playback it errors and closes the browser. I did not see an actual error in the dos window, only in the test tool where the script failed. I also tried to tried to add a project reference to System.Windows.Forms, but that didn't help either.

Anyone have a solution or work around?

Thank you,
Weston

Ivaylo
Telerik team
 answered on 29 Jan 2014
3 answers
58 views
Trouble shooting for several days, with reflector I found the real cause.

The problem is under Environment:
Windows Server 2008 R2 x64, IE 9, IE10 and IE12, and every version of Testing framework from 2012.2 to lastest.
IE would not launch, always prompting could not find file. I tried ways from every posts which is similar but get no way.

Then I had to use reflector and found the following code never works in my environment:

ProcessStartInfo startInfo = new ProcessStartInfo {
            Arguments = ((MajorVersion >= 8) ? "-nomerge " : string.Empty) + "about:blank",
            Verb = "open",
            WindowStyle = windowStyle,
            ErrorDialog = false,
            FileName = "iexplore.exe"
        };
        Process process = Process.Start(startInfo);

which resides in LaunchNewBrowserInstance(int timeout, ProcessWindowStyle windowStyle, string pipename), the above code always throwing exception.
System.ComponentModel.Win32Exception (0x80004005): 系统找不到指定的文件(System could not find specified file)。
   在 System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startI
nfo)
   在 System.Diagnostics.Process.Start(ProcessStartInfo startInfo)

The correct way is using :

Process.Start(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), @"Internet Explorer\iexplore.exe"));
and
Process.Start(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), @"Internet Explorer\iexplore.exe"));

for replacement.

Could you guys fix this for this environment, thanks a lot. It confused me for quite a long time.

Thanks!
Velin Koychev
Telerik team
 answered on 28 Jan 2014
4 answers
194 views
This launches in IE, even though I recorded the test in Chrome.

ArtOfTest.Runner.exe test="C:\Temp\testStudio\TestProject7\WebTest.tstest" serverPublish=true notifyOption=1 

I also tried platform="C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"

Any suggestions? 






Boyan Boev
Telerik team
 answered on 28 Jan 2014
3 answers
143 views
I am trying to add a coded step where I can write data to an Excel file.
I have added the reference in Project Settings -> Script Options -> Add reference from the location below:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client

However, when I run the test, it still fails to complile my coded step. View log displays the error as follow:

c:\Users\Nhan Ai\Documents\Test Studio Projects\Beats Automated Tests\WebTest.tstest.cs: Line 86: (CS0234) The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

And in the code Viewer, these line are highlighted.

Microsoft.Office.Interop.Excel.Application excelApp = new Microsoft.Office.Interop.Excel.Application();
Microsoft.Office.Interop.Excel.Workbook workbook = excelApp.Workbooks.Open(myPath);

Please help!
Thank you,

Nhan Ai


Boyan Boev
Telerik team
 answered on 28 Jan 2014
4 answers
120 views
I am recording and running against Chrome. During recording, I would like to run a single line of of the script. I have a problem clicking some elements like a button. The normal click does not work, so I have to play around with different javascript click events and have to run the whole script to get to that one button to see if it worked. Is there a way that I can play just a single line?
Cody
Telerik team
 answered on 27 Jan 2014
3 answers
77 views
Hi,
I am running data driven test in evaluation copy. Like to know what's the best way to capture result returned from jQuery.
We have Oracle DB at back end, but right now, I created a simple Excel data source, and the page run the query and returns with result.
Questions:
A. Data-driven & valify the query result.
1. Can I put these result to data source wriging code? or another excel spreadsheet outside the application?
2. What's the best way to accomplish this task?

B. How can I add a regular test step?
e.g. The recording missed a step of entering text into zip code, so I want to add
Enter text '32201' to 'zipcodetxt'. It is not manual step or coded step. In evaluation copy, I don't see any button to add 'regular execute step'.

C. Connecting To TFS - just hangs there, and not working
Can it be running in evaluation copy?

D. VB plug in is included in Evaluation copy?

I emailed for technical support because I have to report to my boss this week. But I didn't get any response at all.

Please let me know.
Thank you.

Hannah
Cody
Telerik team
 answered on 27 Jan 2014
6 answers
357 views
Why can a Standalone Test List run locally, but fail remotely?

I've seen this to many times where I can observe that all the files necessary to create the dll file remotely are not being copied to the remote box.  Thus giving errors?

Please explain in this thread if all the files need to run the file locally are compiled locally or remotely?  If they are compiled remotely, then why is the software not copying all the files necessary over to the remote machine.

This is frustrating and taking up to much of my time trying to figure out something that should work remotely if working locally.

Boyan Boev
Telerik team
 answered on 27 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?