Run selenium test from ALM using VAPI-XP test type ?

1,708 views
Skip to first unread message

Ranjit Kundu

unread,
Apr 28, 2015, 7:18:20 AM4/28/15
to seleniu...@googlegroups.com
I want to run my selenium test from ALM VAPI-XP test type.

So anybody here done this before kindly give me some reference for it.

mikePietsch

unread,
Apr 30, 2015, 11:34:08 AM4/30/15
to seleniu...@googlegroups.com

I do this.  Sorry, no references that I know of for doing this directly cuz I couldn’t find any myself that actually worked.  I suppose I should start blogging this stuff to share.  Regardless, this is a basic outline of what to do:

1)      Build your tests outside of ALM (I use python / Selenium )

2)      One of the outputs from the test is a file that has steps for ALM.  This allows me to run my test on my local machine to build and debug them without the overhead of ALM.  Each thing I want recorded in ALM as a step gets a line from the test that has (Step Name, Description, Expected, Actual, Status).

3)      Another output from the test is a doc with details of what happened during the test run and associated screen shots.

4)      I take all the python/selenium code and build it into an exe (we only run on windows so that works for us)  and load it into the Resources within ALM. I have a unique naming convention when uploading that allows programmatically pulling by the VAPI/XP test.

5)      I create a VAPI/XP test in ALM and name it the name of the test I want it to run.  The VAPI/XP code is actually the same code for each test, so during my push of code to the ALM Resources, I also push the VAPI/XP code to a test’s extended storage so the test can be maintained in one place.  The VAPI/XP test will use its own name as a command line parameter to pass to my custom EXE so it knows which test to run.

6)      In my ALM test set I add the VAPI/XP tests.  When run either locally or remotely, the running machine executes the VAPI/XP test.  The VAPI/XP test checks to see if the python/selenium code is where it is expected to be.  If it is, it checks the version, and if necessary it will pull everything it needs from the ALM resources to the machine that is doing the execution.  Once everything is in place, the VAPI/XP test runs a command line that kicks off the appropriate Selenium test. The VAPI/XP waits for a result code from the Selenium test and when it gets it, it then looks for the output files from Selenium test.  For the file with the steps, the VAPI/XP script reads it and creates all the steps within ALM for the test run, and then it looks for the file with all the screen shots and uploads it to the test run.

 

I don’t mind giving more details on all of this but I do think it should be outside the group as this is just a wrapper to Selenium and this group is Selenium usage, not HP’s tool set.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/faeb078e-8946-404f-9e47-49e18b336937%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ranjit Kundu

unread,
Apr 30, 2015, 11:55:19 AM4/30/15
to seleniu...@googlegroups.com
Hi Mike,

Thanks for your time and idea. But one clear walk-through would be more helpful such as some video or image. 

Thanks again.

Swathi Irwathraya

unread,
Jan 4, 2016, 1:56:45 AM1/4/16
to Selenium Users, mi...@mikepietsch.com
Hi Mike,

I would like to trigger a selenium test from ALM. The below steps that you have mentioned are very useful. Can you please help me with more technical details ? Like triggering, individual selenium test script from ALM, updating back the results, the setup required for the same, the code to be written and the rest?

 Thanks in advance.

Aashish Benjwal

unread,
May 13, 2017, 7:24:16 AM5/13/17
to Selenium Users, mi...@mikepietsch.com
Mike could i request for your email id. 

Aashish. 
Reply all
Reply to author
Forward
0 new messages