Telerik Forums
Test Studio Forum
3 answers
57 views
Hi,

Our team is currently evaluating Test Studio and we were wondering how to go about creating a login test that can accept a user/password and be reused in other scripts?

I've read a few forum posts on this subject and believe the approach is to use the Test as Step / Data Driven approach, however I'm not 100% sure which of our tests I need to modify in Test Studio to achieve this :-) I've attached a picture of the current project structure.

Currently I have a _LOGIN test (with a hardcoded user/password) that is called via Test As Step by both the CreateStringFilter and ViewDashboard tests. I'd like to modify it so CreateStringFilter can use a username & password of admin/admin and ViewDashboard QA/12345.

Is anyone able to outline the steps based on our test structure to set this up?

Cheers,
Brett
Plamen
Telerik team
 answered on 12 Nov 2012
5 answers
117 views
Hi,

I can set auto-submit on advanced setting of tfs bug tracking. 

In case of failure, a different bug has been submitted for each test step and its sub step and so on.

For example in a test execution like;

Step1

Step2
Step2.1
Step2.2
Step2.2.1
Step2.2.2
Step2.2.3
Step2.3

Step3

If Step2.2.3 fails, tool seperately creates three bug on tfs for Step2.2.3, Step 2.2 and Step2.

And it says, it is Standalone test list execution feature only! Does it mean that this feature doesnt work for test scheduling and execution server?

Thanks

Ercan
Byron
Telerik team
 answered on 09 Nov 2012
8 answers
160 views
Hello

I have a lightswitch client application. I start to record a simple test. The IE is opening , I choose the application URL, the UI of application is opening. On the left side menu i have few items(controls). When select an item from there, in IE take place an action but no step is recorded on Test Studio. Any idea why? Is there a way to deal with it?

Thanks,
Stoich
Telerik team
 answered on 09 Nov 2012
3 answers
99 views
Hi Telerik Team,
                      we are facing the issue when pressing from user name text to password,following are the steps to reproduce the scenario
 Create the Web test--->Enter User name -->Press Tab-->Enter password-->and perform some functionality-->after performing the functionality run the test case the Test case get failed we are facing this issue,and waiting for the positive reply on this.


Thanks

Prasad
Stoich
Telerik team
 answered on 09 Nov 2012
5 answers
142 views
I have installed Telerik version 2012.1.719.0 on a Windows 2008 server to use as a Scheduling Service and Execution Server. I have installed sql server express 2008. Scheduling Server and Execution Server have been successfully configured. The application can be loaded and run locally. However, test scheduled to run the machine fails as does Run List Remotely.

I have check the following;

port 8009 is enabled on the firewall
Execution Server is run as Administrator
The Project folder as full permissions (read, write execute).

The error message is "Logon failure: unknown user name or bad password."
The project directory is created (with the unique id appended) is created at execution time but it is empty. There are not entries in the log directory.

I can connect to the scheduling server and retrieve the schedules and reports.

The entries in the Windows Security Log.

Security Audit failure
Account failed to logon
Administrator currently disabled

It seems that the Execution Server is trying logon as a guest user. Why would need guest access for a domain if the applications is being run as an Administrator?

Checked permissions on the folders and full permissions to everyone
Scheduling Service and execution service are running as domain administrator.

Any suggestions?

 
Ivaylo
Telerik team
 answered on 09 Nov 2012
2 answers
93 views

Heya

I need to select a record

It's id changes (The request number is the dynamic field)
But with filters I can make it be the only record returned

I have included several screenshots of elements and dom.
Dean
Top achievements
Rank 1
 answered on 09 Nov 2012
1 answer
82 views

Hello

I'd like to verify that a word/number exists on  a page, I would like the test to work without relisnvr on a specific location please.

Dean
Byron
Telerik team
 answered on 08 Nov 2012
5 answers
121 views
Hi Telerik Team,

                         I am using the Telerik Test Studio to perform the Load Testing but i want to use it for more than 100 users but it is supporting for not more than 20 users can u tell me how to increase the Load of the user for more than 100 users can you provide us more feedback on this so that i can use it to perform on the Load Testing in Telerik Test Studio.
                        I am waiting for the positive reply on this.

Thanks

Prasad 
Tsveta
Telerik team
 answered on 08 Nov 2012
2 answers
77 views
I've gone through the steps of extracting text and assigning it to a variable as shown here: http://www.screencast.com/users/TelerikTesting/folders/Jing/media/c85d61a1-9724-41d4-abc2-03975b07bf23

Now, I want to use that as part of a URL. Is it possible to concatenate text?

Use Case: I use a content system to publish to a site. I want to confirm the content made it to the front end.

I would like to navigate to a url like: http://www.site.com/?contentId=$(extractedValue)
Somuch
Top achievements
Rank 1
 answered on 07 Nov 2012
3 answers
313 views
The suggested approach to creating global variable is rather cumbersome and also forces every reference to a global variable to require customize in code.

The approach below uses the SetExtractedValue and GetExtractedValue instead

All references to the variables can be through DataDriven bindings.

  1. Create an XML file

<GlobalValues>
    <GlobalValue>
        <TelerikHomeFirstname>"Michael"</TelerikHomeFirstname>
        <TelerikOwnerSurname>"Jackson"</TelerikOwnerSurname>
        <TelerikHomeEmailAddress>"Neverland Ranch"</TelerikHomeEmailAddress>
        <TelerikNickName>"King of POP"</TelerikNickName>
        <TelerikURL>"http://google.com/"</TelerikURL>
        <TelerikDBUsername>"telerik"</TelerikDBUsername>
        <TelerikDBPassword>"TelerikPassword"</TelerikDBPassword>
        <TelerikDBDatabase>"telerikdb"</TelerikDBDatabase>
        <TelerikCheckCountUsername>"tlk"</TelerikCheckCountUsername>
        <TelerikCheckCountPassword>"password"<TelerikCheckCountPassword>
    </GlobalValue>
</GlobalValues>   

Add a new Script Step. In the OnBeforeTestStarted method
add the following code

public override void OnBeforeTestStarted()
{
    string globalVarsFile = @"c:\<path>\myglobalvarsfile.xml";
    
    try
    {                    
        if(!File.Exists(globalVarsFile))
        {
            // an error has occurred
            Log.WriteLine("Error: FILE" + globalVarsFile + "DOES NOT EXIST");                    
            Assert.IsTrue(false);
        }
        else
        {
            Log.WriteLine("File found" +globalVarsFile);
        }
                            
        XDocument globalVarsXML = XDocument.Load(globalVarsFile);

        var queryResult =
            from gl in globalVarsXML.Element("GlobalValues").Element("GlobalValue").Elements()
            select gl;
        
        foreach(XElement x in queryResult)
        {
            SetExtractedValue(x.Name.ToString(), x.Value.ToString());                     
        }   
    }
    catch(FileNotFoundException fnfe)
    {
        Log.WriteLine("IO Error occurred: " + fnfe.Message);
        
    }
    catch(IOException ioex)
    {
        Log.WriteLine("IO Error occurred: " + ioex.Message);
    }
}




Cody
Telerik team
 answered on 07 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?