Current time: 12-12-2017, 12:56 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HomePage Test
08-21-2014, 09:30 PM
Post: #1
HomePage Test
Hi Team,
I want to test a page (WelComeHome.aspx) immediate load after the successful login(Login.aspx).

Can any one suggest me how can we write a script for the same.

Thanks.
Find all posts by this user
Quote this message in a reply
08-26-2014, 05:34 AM
Post: #2
RE: HomePage Test
It's hard to say without seeing the exact page but the script would look something like this:

Code:
logdata    0
navigate    https://<server>/Login.aspx
setValue    id=loginId    something
setValue    id=password    some password
logdata    1
submitForm    id=loginform

Instead of the setValue commands you can also use javascript with the exec command and instead of submit you can use execAndWait. The actual form fields and values will depend on the site you are testing.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-26-2014, 07:38 PM
Post: #3
RE: HomePage Test
Thanks Patrick for the reply

We tried the script given below, but we are not getting the desired result.
Can you please tell that loginid and password field in id=loginId, do we have to enter text label of that field. Also, is loginform name of login page or the text label for the same?

Ankita
Find all posts by this user
Quote this message in a reply
08-30-2014, 01:20 AM
Post: #4
RE: HomePage Test
You need to open the page you are trying to test with dev tools and see what the form field names are for the form you are trying to automate. I can't tell you what they are because I have no idea what site you're trying to test.
Visit this user's website Find all posts by this user
Quote this message in a reply
09-23-2014, 09:40 PM
Post: #5
RE: HomePage Test
Dear Patrick

We entered the script given below for our URL : https://faw.adityabirlamoney.com/login.aspx so that it by passes the login screen. We did not get the desired outcome.

logData 0
// bring up the login screen
navigate https://faw.adityabirlamoney.com
logData 1
// log in
setValue name=txtLogin bw122301
setValue name=txtPassWord Hsbc1234$4
submitForm name=Form1


Test Result Page:
http://www.webpagetest.org/result/140923_XR_HFV/

Kindly revert at the earliest.
Find all posts by this user
Quote this message in a reply
09-24-2014, 05:18 AM
Post: #6
RE: HomePage Test
The test is gone. In the future you can check the "private" box in the advanced settings which will give you a non-guessable test ID and it won't show up in the test history.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)