Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » [SOLVED WITH WORKAROUND] Login with different users.(#login #different_users)
[SOLVED WITH WORKAROUND] Login with different users. [message #1729227] Tue, 12 April 2016 09:56 Go to next message
Angelo Luciani is currently offline Angelo LucianiFriend
Messages: 129
Registered: September 2015
Location: Milan
Senior Member

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 Go to previous messageGo to next message
Andre Renard is currently offline Andre RenardFriend
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

Re: Login with different user. [message #1729232 is a reply to message #1729231] Tue, 12 April 2016 10:25 Go to previous message
Angelo Luciani is currently offline Angelo LucianiFriend
Messages: 129
Registered: September 2015
Location: Milan
Senior Member

Thank you Andre

"Ce sont les petits désirs qui rendent un jeune homme hardi."
Giovanni Giacomo Casanova

[Updated on: Tue, 12 April 2016 10:32]

Report message to a moderator

Previous Topic:[DUPLICATED] RCP TT don't see tables created using de.kupzog.ktable.KTable
Next Topic:is it possible to iterate through Parameters in Context?
Goto Forum:
  


Current Time: Thu Apr 25 17:11:43 GMT 2024

Powered by FUDForum. Page generated in 0.03252 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top