Ask a Question

Login using Test Complete Keyword test

SOLVED
yoorahn
Contributor

Login using Test Complete Keyword test

Hello, I wanna question How I create 'web site login test' using Test Complete Keyword test. 

 

I tried below steps.. 

1. I recorded Login test using keyword test on a website. (error: zero-sized window. (In my opinion current Test Complete couldn't find Username window. I thought that problem comes from remembered website ID&password. So I wonder How do I handle remembered ID and password.or any other needed solution.. )  )

2. I was create variables Username and password. and I setup 'test setup' value: variable. 

 

Thank you, ... 

3 ACCEPTED SOLUTIONS

Accepted Solutions
Marsha_R
Community Hero

Re: Login using Test Complete Keyword test

1)This archived thread explains zero-sized windows

https://community.smartbear.com/t5/TestComplete-Functional-Web/Help-with-quot-Zero-sized-Window-quot...

 

2) You are correct that TestComplete couldn't find the full window but that doesn't have anything to do with the username and password variables.  


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

View solution in original post

Marsha_R
Community Hero

Re: Login using Test Complete Keyword test

1) It is considered best practice to save values like id and pw in variables in case they need to be changed later. You can change the variable value in one place instead of one or many places in the code.
2) If you use the Password type for a variable, it will be encrypted and not automatically visible to everyone.

Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

View solution in original post

Marsha_R
Community Hero

Re: Login using Test Complete Keyword test

Using the box to login will also prove that the server can be accessed. If it was me I wouldn't do both.

Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

View solution in original post

9 REPLIES 9
Marsha_R
Community Hero

Re: Login using Test Complete Keyword test

1)This archived thread explains zero-sized windows

https://community.smartbear.com/t5/TestComplete-Functional-Web/Help-with-quot-Zero-sized-Window-quot...

 

2) You are correct that TestComplete couldn't find the full window but that doesn't have anything to do with the username and password variables.  


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

View solution in original post

yoorahn
Contributor

Re: Login using Test Complete Keyword test

Thank your fast answer! 

I remove remembered web site's ID&PW, and rerecorded Login process. and I succeded. 

Next, I made variables ID&PW. and I set value connect to variables. 

I just do that, but I don't understand variables purpose of use. 

Please Can you explain me about the variable's purpose in Login test's ? 

Marsha_R
Community Hero

Re: Login using Test Complete Keyword test

1) It is considered best practice to save values like id and pw in variables in case they need to be changed later. You can change the variable value in one place instead of one or many places in the code.
2) If you use the Password type for a variable, it will be encrypted and not automatically visible to everyone.

Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

View solution in original post

yoorahn
Contributor

Re: Login using Test Complete Keyword test

Thank you I appreciate. 

successfully, I made Login Test using Test Complete.

 

Finally, I wanna use that Login test for Health Check. 

I mean.. Health Check .. eventually I wanna check Web Site Login is possible or impossible. 

(1) if failed the login, (2)then I wanna send messege with 'Login fail' text using Messenger. 

 

I made (1) and (2) Test using Keyword test partially. 

Now, I wanna connect (1)and (2) Test using 'if... then' Action. 

But, I don't Know How I use 'if..then' action.  

value1:? / Equal:? / value2:?    .. 

> I wanna make the process: (1) if failed the login, (2)then I wanna send messege with 'Login fail' text using Messenger. 

How can I use 'if...then' action

 

and 

What is the 'Send Request' Action? How can I use this? 

Is it for usuable at Health Check?(Login possible or impossible check) 

 

 

Marsha_R
Community Hero

Re: Login using Test Complete Keyword test

What is the difference on the screen when the login fails or succeeds?  That's what to use for your if/then.

 

For instance, if there is an error message displayed when the login fails, then look for the object that holds the text of the message.

 

If (errortext found) then 

   send alert in messenger

 

--------------------------------

 

Information about Send Request is here:

https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/data/send-request.html

 

I don't think that's related to what you are doing right now.


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
yoorahn
Contributor

Re: Login using Test Complete Keyword test

Thanks your link.

It totally helped. Now, I understood Send Request's purpose.

 

And Can I request you more?

If make Login test, Where should I place 'Send Request' ?
First row ? ...

I don't know where I place 'Send Request' row.

 

What I wanna make to do is 

Send Request(for sever check)- Send Messege (using messenger, If sever response X- Fail messege/ sever response O- OK messege) 

 

Marsha_R
Community Hero

Re: Login using Test Complete Keyword test

Is the login that you are testing something that's on a webpage like this?

Marsha_R_0-1628729215705.png

 


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
yoorahn
Contributor

Re: Login using Test Complete Keyword test

Yes, almost like that. 

my web page have only user e-mail and PW blank. 

 

I imagine below process can be possible.. 

1. server check using Send Request

2. get success code means server can login(In my imagine) then send OK message. / sever can't login then send FAIL message. 

 

Can I do that process using 'Send Request'? 

Marsha_R
Community Hero

Re: Login using Test Complete Keyword test

Using the box to login will also prove that the server can be accessed. If it was me I wouldn't do both.

Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: