Telerik Forums
Test Studio Forum
1 answer
62 views
Hi all
I record , I run successfully
But I copy to other folder, I can not run this script ==> There is always error "compilation fail"
.....2- Edit output channel folder.tstest.vb: Line 87: (BC30456) 'DnnCtr436EditOutputFolderTxtDescriptionTextArea' is not a member of 'Pages.InachisHardwareAndChannels0Page'.
....3- Output channel\2- Edit output channel folder.tstest.vb: Line 107: (BC30456) 'DnnCtr436EditOutputFolderTxtDescriptionTextArea' is not a member of 'Pages.InachisHardwareAndChannels0Page'.

When i view class then line 87 and line 107 do not exist.

I run this script at old folder. It is ok
Please help me

Stoich
Telerik team
 answered on 02 May 2012
2 answers
129 views
Hi,

I want to execute a batch file (from network) in a Code Scripted Step like this:

Process prc = new Process();

            prc.StartInfo.FileName = @"W:\QA\copyTestFileToFolder.bat";

            prc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;

            prc.Start();

            prc.WaitForExit();

            prc.Close();


I got the following message:
'30.04.2012 15:44:12' - System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.   at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)   at System.Reflection.Assembly.LoadFile(String path)   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureAssemblyExists(String assembly, String folder)   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.CreateCodedTestInstance(Test test, TestResult result, String binariesFolder)   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)

We need to run the tests under cruise Control and automatic. So we need the code to be on the network share.
What do I have to do, to give the access?

Regards,
Adriane

Adriane
Top achievements
Rank 1
 answered on 02 May 2012
1 answer
94 views
Hi team,
I want to know if telerik supports to invoke property or method in other's class. By now, i just found that we can reuse a test file which may contains more than one method, actually it will automatically inovke all methods in file if i invoke this test file in other test while one of those is needed
Stoich
Telerik team
 answered on 01 May 2012
1 answer
93 views
We are testing the Test Studio Trial and missing a feature we did'nt find in the documentation.
Is it possible to attach images of failed steps from a test list to the generated (Word, Excel) report?
It would be pretty awesome, if the expected storyboard images and actual test images are included in the reports.
Ivaylo
Telerik team
 answered on 01 May 2012
3 answers
112 views
Hi All,

I have added Loop(say of count 5) and under that loop I have added Verify statement(which is my first step) which goes and verifies some text on page.And for this Verify statement ContinueOnFailure is set to true.
Now what I want is, in that loop if first Verify statement is failing it should go and execute next Verify statement so that depending upon some text I can take corrective action.But what is happening is if first Verify statement fails it is going to next iteration of Loop and then loop fails.
please help
Anthony
Telerik team
 answered on 30 Apr 2012
2 answers
156 views
Is there a way to set the behavior to always use

OffSet Reference: AbsoluteCenter
Point Unit: Pixel
Point X: 0
Point Y: 0

So that I don't have to always manually change it every time I create the event?

Sincerely,

Sonny
Ivaylo
Telerik team
 answered on 27 Apr 2012
1 answer
132 views

When navigating to an address with security Telerik does not take the browser to the site but stops.  The “Start recording using instance of browser appears and not the ip address.

Any thoughts?

John

Ivaylo
Telerik team
 answered on 26 Apr 2012
3 answers
153 views

Hi Telerik Team,

Scenario to automate:

User creates few objects in application under test. The names of these objects could be anything which user specifies.

On some different page of the application I am having a HTML list box of type SELECT. This list gets populated with the object names which  user have created previously. Here I want to select the multiple options from the list. I will be specifying the options to select as a comma separated list in the Excel column.

I have done it using a coded step. I would like to avoid the coded step. So I would like to know, if there is a way I can do it without coded step?

Code for the current coded step:

// Read the options from input Xls file and make a list from comma separted values
List<string> optionsToSelect = Data["ListOptions"].ToString().Split(new char[]{','},
    StringSplitOptions.RemoveEmptyEntries).ToList<string>();
var lstBoxTestOptionsSelection = Pages.Page1.FrameFrame00.lstBoxAvailableOptions;
// Select the given options from the listbox
foreach(string strOption in optionsToSelect)
{
    foreach(HtmlOption option in lstBoxTestOptionsSelection.Options)
    {
        if(strOption.Equals(option.Text))
        {
            // Get the index of the option from listbox
            Log.WriteLine(option.Text); 
            var indexToSelect = lstBoxTestOptionsSelection.Options.IndexOf(option);
            Log.WriteLine("Index: " + indexToSelect);
            // Select the option from listbox
            lstBoxTestOptionsSelection.SelectByIndex(indexToSelect);
            // There is another list to which I need to add the selected items so clicking on Add button.
            // Click on Add button to the other list box where we are kepping the selected items
            Pages.Page1.FrameFrame00.BtnAddRSDiv.Click();
            break;
        }
    }
    lstBoxTestOptionsSelection = Pages.Page1.FrameFrame00.lstAvailableRSSelect;
}

Cody
Telerik team
 answered on 26 Apr 2012
4 answers
209 views
Hi, I am fairly new to using Test Studio and am still in the trial version. I am trying to evaluate Test Studio on a web application that we are going to use and are looking for an automation tool to implement. 
         The test i am using is a data driven test and most of the fields in the application are drop-downs. So i need to read through one of my drop-down selection, and based on the value selected in the drop-down, i need to run through certain fields. I tried  to use the extract selection and get the value of the drop down into a databind variable and then assign that to a variable which i tried to use in the IF statement but i am getting a "Object reference not set to an instance of an object. at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout). at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)"
          Can you please provide me any input on how to clear this issue?

Thanks,
Nithu

Nithu
Top achievements
Rank 1
 answered on 26 Apr 2012
3 answers
130 views
Good morning,

I have installed the trial version of WebUI Test Studio. At first I was experiencing extremem slowness when recording from my secure web application, so we bumped up my RAM. That seemed to help the automation piece. When I am done recording I return to the Test Studio to save and execute my test. My current test fails because it does not recognize the text I am inserting into my User Name field. So, when I return to WebUI Test Studio to edit my test, at this point my system completely freezes.....I have to Ctrl-Alt-Delete to break free, and do a Restart everytime. This, of course, is very frustrating, and I have not been able to determine what is the cause of this.

Can you assist with the system hanging?

Also, another issue I'm having is my playback not recognizing the fact that I've entered text in my User Name field. At first, it wouldn't even recognize the fact that I was in that field, so I worked around that by tabbing past that field to the next field, then tabbing back to my User Name field. Doing this in my recording at least allowed the playback to acknowledge that I was in the User Name field. So once I have tabbed back to get to the first field on the page, I enter my user name, and continue recording. Once I stop recording and return to Test Studio and execute, it still does not record that I actually put test in that field........when I first tabbed out of the field the recorded test indicates it was in the right field name, but when I actually enter text into that field, the recording automatically changes the name of the placeholder for the text. Is this possible a compatability issue with Infragistics controls?

Any assistance would be greatly appreciated!

Kay
Anthony
Telerik team
 answered on 25 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?