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

Telerik webUI test studio QA edition

12 Answers 215 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
NKG
Top achievements
Rank 1
NKG asked on 21 Jan 2011, 07:06 AM
HI,

Data binding work I have already done. I am unable to put the validation to know where the test fails.
For example.
I leave username field blank and put the correct password then when I click on login button then a pop up opens and says "Please enter username". Here comes the problem when I go back and see the step in telerik tool all are shown PASS but actually it should be failed. I run all the test cases of login through data binding but all shows PASS rather only with correct username and password test should be passed.
Hope you understand my problem.

Regards,
Nitin

12 Answers, 1 is accepted

Sort by
0
Keaegan
Telerik team
answered on 25 Jan 2011, 05:38 PM
Hello Nitin,

For our tool, a step will be marked as pass if it accomplished the task it is set to do. Using your example, this means that the step will pass if able to input the specified data into the appropriate field. If you are creating a special test to confirm that your site provides a specific alert if no username is entered, WebUI is going to input the password (passed step), then handle the alert dialog (passed step). WebUI does not change this facet based on the feedback provided by the site.

Essentially, if the step is listed and followed it will be marked as passed. If, however, the step tried to input data into the username or password field and the field did not exist yet, this would be marked as a failure.

If this information did not assist, would you be able to provide a video showing the feedback that you are receiving versus what you are expecting to see? 

Best wishes,
Keaegan
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
NKG
Top achievements
Rank 1
answered on 28 Jan 2011, 02:40 PM
Hi Keaegan,
Thanks for you reply. But your answer does not solve my problem.
I am explaining the exact senario- When we click on Login button, a pop box opens in our application saying "Please enter username and password" and test stops there but did not show it FAIL it show all step PASS. I need to show Step FAILED when wrong username or password is entered.
I am attaching the screen shot of pop up that comes in our application.

0
Cody
Telerik team
answered on 28 Jan 2011, 05:33 PM
Hi Nitin,

Do you have a verification step included in your test? Suppose you have these test steps:

  1. Type user name
  2. Type password
  3. Click login

Then your test ends there. This small test will always pass (unless the test cannot located the input fields and login button) regardless of the user and password entered. The test successfully performed all three steps.

The tool cannot detect that this is a login dialog and automatically test whether or not the login succeeded. It only knows that it must perform actions on those three elements, and once those actions are done the testing is complete as far as that test is concerned. The test is then marked passed because all three steps were successfully performed.

What I suggest doing is adding a verification for something that appears on the main/home page after the login is successful... perhaps there's a "logout" link or button that appears. If true you can just add a Wait.For Login is present verification step as step 4. If the login fails, this step will fail.

Regards,
Cody
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
NKG
Top achievements
Rank 1
answered on 29 Jan 2011, 07:14 AM
Hi,


Can you suggest the example of the verification.As in QTP their were various things like check points by which we can grab various pictures like text box check point,gui check point,comparising the length height of the text boxes ,data driven wizard,parametirization..but in telerik i am facing problem their are no such type of things available,and the major concern is i  have got licence version of telerik and i have to show demo how i am working with this tool.can you provide me a flow step wise ,on any application so that i can prove something to my client.

one thingh more i want to know that cant we check the functionality with this tool like mandatory fields in the application,Duplicate valut,itemes coming in drop down list.

please let me know the meaning of various propertis whic we set on the right side box in telerik tool.

Please do the needful.

Regards.
0
Alex
Top achievements
Rank 1
answered on 29 Jan 2011, 10:29 AM
You can check for example if logout button is visible. That will show that you are already logged in.
For the reverse logic you can check if register link or forgot password is still visible.
If you dont know how to add verification, check the videos on the telerik website.
0
Hillary
Top achievements
Rank 1
answered on 29 Jan 2011, 03:14 PM
hi ,Asif this side i am doing the data driven test i tried 3 steps by local data,data binding and excel sheet but i could not make it.i created the excel sheet on my desktop with two columns user name and password .

then i enter valid user name and password in first two rows and invalid second time

valid user name password:                    asif     admin
valid user name invalid password:          asif    mind

i saved this excel sheet.

in telerik tool i go to the local data and select data source in that button data source (excel comes) and beneath that one more button exists but when i click on the button sheet no 1 does not appear .so that my list of user name and password might be displayed..this is the issue.


can you please let me know what steps i have to do or i have to make any sort of connection to data base but i simply create excel sheet on desktop.
0
NKG
Top achievements
Rank 1
answered on 31 Jan 2011, 06:56 AM
Hi Alex,
 
Thanks for the reply. By checking the logout button is visible or not is not the correct way because the Test fails on the Last step not where we enter password. If you have any new method then please tell me.
Also please provide the link of the video you are saying about.

0
Stoich
Telerik team
answered on 03 Feb 2011, 10:39 AM
Hi Nitin,
   here is a video demonstrating how to get this done:
http://www.screencast.com/users/TelerikTesting/folders/Jing/media/37362416-8dbe-4f54-9ab2-129454ab3c70
 
In the video I demonstrate how I record a Login test for a Telerik account. I record it in such a way so that it will fail if the password is wrong. First I run it correctly then I change the password to a wrong one in order to demonstrate how it fails.

I hope this helps!

All the best,
Stoich
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
Alex
Top achievements
Rank 1
answered on 03 Feb 2011, 11:14 AM
I mean to check the visibility of "logout" button only for normal flow(positive testing).
For the negative tests you should use other items that are visible on the login page( for example may be a message for wrong password).
You may use IF ELSE statement to cover both examples. You can separate your tests in two types(negative, positive).
That will help you to separate the logic in testing and much easier for you to prepare the data files. For example successfull login credentials will be just 1, 2 or 5 but every other will be in the negative part. So it makes sense to separate the logic in testing.
0
Cody
Telerik team
answered on 03 Feb 2011, 11:37 PM
Hello NKG,

We can't make the test step fail that enters the password based on whether or not the login succeeded. As long as the test successfully entered the indicated password, that test step has passed and should be marked passed since it did exactly what it was told to do (enter the password text).

We can only make a verification step fail based on some UI element verification that is displayed as the result of the login attempt, such as the presence of some text, or the absence of some text or element. Is there some reason this is not acceptable?

Kind regards,
Cody
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
NKG
Top achievements
Rank 1
answered on 10 Feb 2011, 08:13 AM
Hi cody,
 Thanks for the reply. I will do as you explained.
 I have one query, I am unable to use if..then else condition. Can you give any video which explains how to use (if then else) condition and (do..while) condition.

Thanks,
NKG/Asif
0
Cody
Telerik team
answered on 10 Feb 2011, 06:11 PM
Hi Asif,

Yes I can. We have one just for If Else and another for Do While and another for Creating a Loop. These pages have links to many other tutorial videos you may find useful.

Best wishes,
Cody
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
Tags
General Discussions
Asked by
NKG
Top achievements
Rank 1
Answers by
Keaegan
Telerik team
NKG
Top achievements
Rank 1
Cody
Telerik team
Alex
Top achievements
Rank 1
Hillary
Top achievements
Rank 1
Stoich
Telerik team
Share this question
or