Telerik Forums
Test Studio Forum
1 answer
101 views

Hi ,

I have an input that require simulated manual entry in order to trigger the validation. I selected ;'simulate manual typing' for my recorded step and everything worked fine.

Now, when I convert the recorded step to a coded step, the step fails.

Here's the coded step..

[CodedStep(@"Enter Comment Text 'Automation Test'")]
        public void enter_Address_data_CodedStep3()
        {
            // Enter text 'Automation Test' in 'NewAddressdescriptionTextArea'
            Actions.SetText(Pages.MicrosoftDynamicsCRM.FrameContentIFrame.NewAddressdescriptionTextArea, "");
            Pages.MicrosoftDynamicsCRM.FrameContentIFrame.NewAddressdescriptionTextArea.ScrollToVisible(ArtOfTest.WebAii.Core.ScrollToVisibleType.ElementTopAtWindowTop);
            ActiveBrowser.Window.SetFocus();
            Pages.MicrosoftDynamicsCRM.FrameContentIFrame.NewAddressdescriptionTextArea.Focus();
            Pages.MicrosoftDynamicsCRM.FrameContentIFrame.NewAddressdescriptionTextArea.MouseClick();
            Manager.Desktop.KeyBoard.TypeText("Automation Test",50,100,true);
            
        }

 

and the exception...

Failure Information: 
~~~~~~~~~~~~~~~
Exception thrown executing coded step: 'Enter text 'Automation City' in 'CityText''.
InnerException:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
InError set by the client. Client Error:
System.ArgumentException: Tag collection of 'input' elements is either empty or has less elements than the element occurrence requested. RequestedIndex: '8', ElementLength: '0'
   at ArtOfTest.InternetExplorer.IECommandProcessor.FindElement(ElementIdMessage id)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'SetText',Target:'ElementId (tagName: 'input',occurrenceIndex: '8')',Data:'',ClientId:'Client_fc23a956-34ef-4a07-a35b-70219db7cf85',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.ArgumentException: Tag collection of 'input' elements is either empty or has less elements than the element occurrence requested. RequestedIndex: '8', ElementLength: '0'
   at ArtOfTest.InternetExplorer.IECommandProcessor.FindElement(ElementIdMessage id)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.

   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Actions.SetText(Element targetElement, String text)
   at ArtOfTest.WebAii.Core.Actions.SetText(Control targetControl, String text)
   at TestProject2.enter_Address_data.enter_Address_data_CodedStep2() in f:\New folder\Test Studio Projects\TestProject2\Address\Steps\enter Address data.tstest.cs:line 239

 

Any help would be appreciated.

 

Thanks,

dan

Boyan Boev
Telerik team
 answered on 15 Aug 2016
8 answers
233 views
Hi Telerik Team,

I have WebQA/ Dev Edition installed on win7 (local), i have installed Web UI Run Time Edition on remote machine.
I have configured scheduling server and execution server on remote machine. I have connected to scheduler which is on remote machine from QA Edition which is on win7 (local). I have schduled test list from QA Edition which i want to execute on remote machine.

I have tried this solution but its not working. I have tis this approch possible?

Please reply as soon as possible.

Regards,
Anshul
Elena
Telerik team
 answered on 11 Aug 2016
1 answer
108 views
I can connect to the main git project, however i want to be able to open the project located in a branch.  How can we do this?  I have multiple people working the main project but do not want them all working out of the master.
Elena
Telerik team
 answered on 11 Aug 2016
1 answer
89 views

Hello, Hi.

 

I want to ask one question regarding the title above. How do I do for test drag and drop? because I have to drag the element and drop it at some space then it will popup some data. How I can do that? can you please teach me because I am still beginner for test studio.

Nikolay Petrov
Telerik team
 answered on 10 Aug 2016
3 answers
108 views
i have a simple, newbie question. during a login test, i am collecting username and password. when i enter in the username, the chrome autocomplete feature automatically pops down from the textbox and appears over the password textbox. how do i get around not having to press Escape or "tab out"/click outside the textbox to click in the password textbox so that it doesn't record an unnecessary step (which could potentially cause the test to fail if the user doesn't follow the same process)?
Elena
Telerik team
 answered on 10 Aug 2016
3 answers
92 views
Hi, I have a question about load testing with data(username/password). When I try to load test with multiple accounts(5 accounts as an example), if I run it only for 5 minutes it only goes through one iteration for one account, however if I run the load test for 10 minutes, it runs the test with two accounts. I was curious if I am missing something. I am currently trying to test an application for a user to fill out, which should only at most take 1minute. Is there an option for make the load test run until all steps have been completed, because if I set the load test for 5 minutes it will run the test for the entire time. Thank you.
Nikolay Petrov
Telerik team
 answered on 09 Aug 2016
1 answer
116 views

Hello,

Does anyone know how to access the name of the current test list inside a coded step?

 

Thanks,

Steve

Elena
Telerik team
 answered on 08 Aug 2016
1 answer
147 views
I am trying to create a loop in Telerik Test Studio that will extract text from a textbox using cell##gridviewcell. So that I can iterate through all 18 grid rows * 25 pages and save them all at once. I am going to use the extracted data to verify the same rows after deleting and reconstructing them. Below is a coded effort that I tried to achieve itteration in C#.

string[] conceptName = new String[522];
for(int i=0; i<29; i++)
{
for(int j=0; j<18; j++)
    {int k = i+j;string extractCell = "Pages.NameOFWEBSITE.ConceptBank0.SilverlightApp.Cell"+j+"1Gridviewcell.Text";SetExtractedValue("Row",extractCell);Console.WriteLine("{0}", conceptName[k]);
    }
}

Ideally, if I could find the code behind the step in telerik: gridviewcell Extract text into DataBindVariable $(Cell01Gridviewcell) It would give me the text as a string that I could then save to later use in verification.
I have done quite a bit of searching, the two leads I have found include:
these may hold the answer but i was unable to figure it out.http://docs.telerik.com/teststudio/advanced-topics/coded-samples/general/extracted-variables-in-codehttps://telerikhelper.net/category/test-studio/
telerik version 2014.4.1411.0
Nikolay Petrov
Telerik team
 answered on 08 Aug 2016
1 answer
117 views
I am using Test Studio Mobile Testing, but after I have successfully recorded the test procedures, and during executing the test, there are some steps which are failed. I just want to know what are the limitations of the software? Because the app that we're testing requires wireless connection, and there's a function like keep me logged in, so when I'm executing the test, it is failed at the first step. Please provide us the limitation of the SW, thank you.
Nikolay Petrov
Telerik team
 answered on 08 Aug 2016
1 answer
126 views

Hello,

Our web application uses Common Access Card for authentication. For those who are not familiar with CAC smart card, here is the definition:

"The CAC, a "smart" card about the size of a credit card, is the standard identification for active duty uniformed service personnel, Selected Reserve, DoD civilian employees, and eligible contractor personnel."

http://www.cac.mil/

When I recorded the test, I logged in with using my CAC card (CAC card is physically connected to the computer through a CAC card reader using USB cable). The test executed and passed. No problem there. If I remove the CAC card and run the test it would not work. I get alert message requesting to insert CAC card. The fact that I have to leave my CAC card in all the time when I run the test can be a potential issue down the road. I'm just wondering if there is any kind of support for CAC card in the Test Studio. What I ultimately wanted to do is not having to keep my CAC card physically at the machine when I run the test. Does anyone have any suggestions?

Thank you!

Jun

Elena
Telerik team
 answered on 05 Aug 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?