cancel
Showing results for 
Search instead for 
Did you mean: 

ETE Automation_ Using VDI_With different Userids

Contributor

ETE Automation_ Using VDI_With different Userids


Hey, I am working on one of the JSP application,It utilises the SSO to launch. In test instance we have created 4 test id one with different trasactions.

since it is lauches the loged in user Id, I have to lauch it using the VDI( Virtual Desktop Interface)

One ETE scenario constitues:
logging to VDI - Test id 1
Launch the Application
Create request
logoff

logging to VDI - Test id 2
Launch the Application
verify Information on the request
logoff

logging to VDI - Test id 3
Launch the Application
Approve the request
logoff

 

I have installed the TC on VDI and able to script Create Request.

Now the issue is: This is requiring manual invention of logging and loging off when swithcing between Test ids.
The requirement is automate fully ETE.
I tried using Cd_run as different user.. didnot work.
Is there a way we can automate the VDI logging and logout using TC ?

 

4 REPLIES 4
Community Hero

Re: ETE Automation_ Using VDI_With different Userids

Did you try recording a test using the steps you just described?  What happened?

Contributor

Re: ETE Automation_ Using VDI_With different Userids

So far I scripted :create request till log off by accessing VDI, TC instance on VDI.
I cann’t script the login because I am accessing VDI through RDP of my system, after logging in to VDI I am launching the TC to execute the tests.

I have scripts for create, verify approve with different users which was scripted on VDI by performing the login steps manually.
Community Hero

Re: ETE Automation_ Using VDI_With different Userids

Hi,

 

You may try the aqEnvironment.RebootAndContinue() method and check if it works for you.

 

Another idea is to setup three different VDIs and start them logging-in as required users. Then, if you have enough licenses, you may consider Network Suite to execute actions on the required VDI. If you don't have enough licenses, you will have to create some driver (e.g. batch file) that will start TestComplete on the proper VDI (via WMI, for example), trigger execution of the required action, close TestComplete and continue with the next VDI.

 

One more possible option, depending on the actual need and implementation, is not to use GUI tests but do required actions (verification, approvement, etc.) via API calls and try to tweak them so that they are executed on behalf of the required users.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Community Hero

Re: ETE Automation_ Using VDI_With different Userids

Is there a way we can automate the VDI logging and logout using TC ?

Since you said that after that you are on RDP, then the answer is yes, but not all in one piece.  RDP is a line that TC can't cross.  You can use TC for VDI login but it won't be able to execute anything on the remote machine, and as you've already discovered, you can manually log on to VDI and then use TC that's installed on the remote machine.

You'll need enough licenses to implement @AlexKaras 's solution in order to automate both sides with TC.

 

 

 

Ask a SmartBear
Top Kudoed Authors