[SOLVED WITH WORKAROUND] Login with different users. [message #1729227] |
Tue, 12 April 2016 09:56 |
|
Dear all,
I need to log in into AUT using different users.
It is really useful for security test cases.
The users has got different permissions.
A simple scenario could be :
1. Log in using user A
2. Run Some operation with user A
3.Log Out
4. Log in with user B
5.Run some operations with user B
6.Log out
Is it possible using RCPTT to create a test case to cover the steps I describe before ?
Thanks in advance.
"Ce sont les petits désirs qui rendent un jeune homme hardi."
Giovanni Giacomo Casanova
[Updated on: Thu, 14 April 2016 08:15] Report message to a moderator
|
|
|
Re: Login with different user. [message #1729231 is a reply to message #1729227] |
Tue, 12 April 2016 10:17 |
Andre Renard Messages: 39 Registered: February 2013 Location: Liege, Belgium |
Member |
|
|
Hi Angelo,
What we did is adding to our application the possibility to give the login/pwd as parameters. Then we created separate AUTs each with a different user. Then we prepared different tests for each AUT and combined them in a suite using "Run/Run Configurations.../MultiAUT Suite" (a nice feature explained nowhere).
I forgot to mention that we also developed a nice screenshot-based reporting system to trace what we are doing. It is using the following proc:
/* Take a perspective screenshot and save it in
$test-directory/yyyy-MM-dd/yyyy-MM-dd-kk-mm-ss-SSS title.png */
proc "ws-screenshot" [val title] {
let [val folder [get-time | format-time -format "yyyy-MM-dd"]]
[val time [get-time | format-time -format "yyyy-MM-dd-kk-mm-ss-SSS"]]
[val cleaned_title [echo $title | invoke replace "*" "°" | invoke replace "/" "@" | invoke replace "?" "&" | invoke replace "\\" ""]]
[val user [get-id [get-eclipse-window | get-property title -raw]]] {
get-eclipse-window | get-object
| save-screenshot [concat $test_directory "/" $folder "/" $time " [" $user "] [" $cleaned_title "].png"]}}
Best regards
Andre
[Updated on: Tue, 12 April 2016 10:20] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03252 seconds