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

Generic UI

3 Answers 150 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
wish
Top achievements
Rank 1
wish asked on 18 Aug 2011, 09:30 PM

Generally work flow of the Telerik Test Studio Test Scripts will be as follows: 

  1. Record required number of test scripts on telerik test studio under a sample project
  2. Group these recorded test cases as a list inside the sample project
  3. Create a Scheduling  server which
    1. creates a database on the machine which has sql server instance and also registers with machine which has database to store and retrieve test results when test scripts execution completes or failures
    2. Stores information about the smtp server to send email notifications when test scripts execution completes or failures
    3. Defines the output or run result folder paths for storing results information as files.
  4. Create an Execution server which is responsible for execution of test scripts
  5. Establishing a test connection between test scripts folder and machine which has database.
  6. Defining the test scripts execution frequency cycle.(i.e., daily/weekly/monthly/yearly/timely)

  • Scheduling server – responsible for identifying the time frequency/internal to enable to execution server to execute test scripts and storing the results which completed or failed
  • Execution server – responsible for execution of test scripts and sending execution details to scheduling server.

 

Once, the above steps are performed, without any user explicit action, test scripts are executed and details about executed test scripts are stored in the database. 

http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/scheduling-test-runs/create-a-scheduling-server.aspx 

To view the details of execution of test scripts, currently we have two options. 

  1. Results display in Telerik Test Studio under MMXUITestScripts application and exporting them to word/excel/pdf etc., (or)
  2. Direct table view of database where results are stored

My Questions:

Do we have chance to show dashboard kind of stuff with test scripts display and able to execute  from dashboard with ny button clicks and see their details over dashboard?

Ex: .Net or Silverlight based UI for displaying list of test scripts which are recorded on telerik test studio projects and having ability to start/stop/pause/cancel and see their current and previous results

The reason behind asking this, is my management people were more interested to view the test scripts recorded as list on dashboard and they need ability to start/stop/pause/cancel and view current and previous results for comparision.

Any hopes here..

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 23 Aug 2011, 05:26 PM
Hi Wish,

Are you planning on writing your own dashboard application? How do you envision running and monitoring tests? Are you intending on hooking into our scheduling server data?

I'm not sure how to get to your intended goal. The structure of the SQL database you talk about (where scheduled tests and test results are stored on the scheduling server) is proprietary and may change at anytime without warning. We intend on publishing an API for accessing that database, but I don't think that documentation is ready yet... I am checking on its state and will get back to you shortly. Hopefully it's far enough along that I can send you something useful.

You can write your own application to enumerate and display all the tests available at a specific location (a network share), even manually launch them. The way to launch a test programmatically from a dashboard like application is with this bit of code:

ResultSummary results1 = ArtOfTest.WebAii.Design.Execution.RunHelper.Test(@"c:\testprojectdir\test.aii", @"c:\testprojectdir\bin\debug\testproject.dll");

The first parameter is the full path and name of the test to execute. The second parameter is the full path and name to the already compiled dll for the test project. Unfortunately we don't have the ability to stop/pause a test once it has begun execution. The test must run to completion, either pass or fail. Also, the results are not available while the test is executing. You can only access the results after a test completes.

I think we'll know more when we can the API that shows us what can/cannot be done with the scheduling server API. In the meantime if you can try to define how you intend your dashboard to work we can figure out how to hook it into the testing process.

Regards,
Cody
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
0
wish
Top achievements
Rank 1
answered on 24 Aug 2011, 01:13 AM
Hi Cody,

Thanks for the information,..

Any how, my issue got resloved...i went thru small asp.net app implemented as per my need,,,

my management ppl are not intrested to go with scheduled or execution server....

so i created an asp.net application with 2 screens..

1 screen: it will display list of test scripts as a grid with button ,image button ...and also dropdown columns...
for each test case, we should select the url in dropdown and click buttton will start executing test case... by clicking image button, we can see results in 2 screen

what i did here....when we button click for test case, i opening command prompt rooting to artoftest.runner.exe working directly...running below code

 System.Diagnostics.ProcessStartInfo psi = new ProcessStartInfo();
                        psi.WorkingDirectory = @"C:\Program Files (x86)\Telerik\Test Studio 2011.1\Bin\";
                        psi.FileName = "ArtOfTest.Runner.exe";
                        psi.UseShellExecute = false;
                        psi.Arguments = " test=" + "\"" + "C:\\Users\\xxxxxx\\Documents\\Test Studio Projects\\MMXUITestScripts\\" + testscriptgrid.Rows[currentRowIndex].Cells[0].Text + "\"";
                        Process p = Process.Start(psi);
                        p.WaitForExit();

2 screen:

when user click image button of a test case, i redirected to another screen where using system.io iterated theu results folder and displayed...

thanks.,
Hari


0
Cody
Telerik team
answered on 25 Aug 2011, 12:08 AM
Hi Wish,

I see. Yes that approach should work. The only caution is to not allow two instances of ArtOfTest.Runner to run simultaneously. They will conflict with each other if you accidentally let it happen.

Greetings,
Cody
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
Tags
General Discussions
Asked by
wish
Top achievements
Rank 1
Answers by
Cody
Telerik team
wish
Top achievements
Rank 1
Share this question
or