5 Answers, 1 is accepted
I'm not sure I understand what you're asking for. I'm interpreting your requests as follows:
1) How can I, in code, launch the Test Studio recorder? - This cannot be done. You must launch our recorder using the Record button in Test Studio. I am wondering why would you want to do this? How will this help you be more productive?
2) How can I, in code launch/execute a Test Studio test? - Use this code to launch a Test Studio test:
ResultSummary results1 = ArtOfTest.WebAii.Design.Execution.RunHelper.Test(@"c:\testprojectdir\test.aii", @"c:\testprojectdir\bin\debug\testproject.dll");
Cody
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I am trying to create a test enviroment for testing our custom page in CRM 2011.
what i do is open the page using navigate url and run some functions on the page that are written using VS and telerix , while demoing one of the seanrios the common question was can we incorporate the record and play in the page so that we can record the events that happen as we do in coded ui. hence the question
hope it helps
Thanks
Can you clarify exactly what "record the events that happen" means technically?
For clarification, what Test Studio records are UI actions e.g. this button was clicked, this option was selected from the drop down, this element was dragged and dropped from point A to point B, this text was typed into this element. We record all of these UI interactions and our test scripts play back these actions in the browser as if a real person was sitting there interacting with the UI.
We don't record events happening in the web server, or within JavaScript and such.
I am beginning to think we should have an online meeting to discuss this so you can explain to me in more detail what you're after and I can better assist with what can or cannot be done with Test Studio. You are in New Dehli, is that correct? We'll need to figure out timing because I'm located in Austin, Texas, which is about 11 hours behind you.
Cody
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Sorry for the delay in response. What i mean by my question is explained below, however due to some restriction i might not be able to elaborate the whole problem .. trying my best.
I am trying using the testing framework along with VS to stimulate what the record and play does (recording the UI action like button click entering text, selecting option etc.) thru .net code. I was able to accomplish the same using the framewok.
This functionality can be made more simpler if i could implement your record and play part.
Example if a user does the following using the .net code: Open url, fill text box with a value and select some value from dropdown, this might be a script that can be used commonly througout. So if i can somehow introduce a plug and play in it thru code it would be better for the user as he is used to the coded ui enviroment.
So is this possible?
hope i have explained the need for the same:)
I tried connecting the test studio to the URL opened by the .net code , however it was unable to record the same may br as i was in the dbug mode(just a guess).
Help appriciated
Maybe what you are after is what we call "test modularization". Test Studio has that feature using our Test-as-step feature. We are big proponents of avoiding code whenever/wherever possible. I am not comfortable agreeing with saying "because someone is used to the Coded UI approach we want to stay with it". It is our opinion that the Coded UI approach is not the best (or even a good) approach. Instead we're offering a product in which you record completely codeless scripts and use that as the staple for all of your functional testing. Test Studio supports coded steps for those few/advanced cases that the standard test steps don't meet your needs.
Our free testing framework cannot be used to try and implement your own recorder, if that's what you're trying to accomplish. In fact, I need to check our EULA, but I believe you are prohibited from trying to use our free framework from trying to make a recorder. You can hand code your own coded tests with it, but you won't have any recording ability like Test Studio comes with built-in.
Am I answering your questions adequately?
Cody
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.