VB Smoke Test Script Not Working

Dear Team,

The Smoke Test Script is not working for us at Final Builder Web Portal. The Smoke Test Scripts are written by us in VB script to ensure that the application has been successfully deployed and accessible to end users. The Smoke Test Script written in VB just calling the landing page of the application. We are passing the user credentials with the request.

We are calling VB Script in Final Builder just after deploying the application in target enviroment with help of Run Script action.

This script working fine for us with Final Builder Client tool but not at Final Builder Web portal. We are expecting that after the deployment it open a new winodow in internet explorer and shows the landing page of application.

A sample of VB script is as follows

' Setting of Hss site, enviroment and application url.
' ----------------------------------------------------------------------------------------------------------
' ----------------------------------------------------------------------------------------------------------
  enviroment =  "TEST"
  naviagtehss = "http://int-hss.humana.com"
  navigateapp = "https://int-hss.humana.com/Finance/LandingPage.aspx"
' ----------------------------------------------------------------------------------------------------------
' ----------------------------------------------------------------------------------------------------------

' Popup a dialog and prompt for a password
strUsername = "XYZUSER"
strPassword = "w$&hfg@#"

' Open hss.humana.com to authenticate user.
SET oIE = CreateObject("InternetExplorer.Application")
with oIE
.navigate naviagtehss
.resizable=1
.height=720
.width=1000
.menubar=1
.toolbar=1
.statusbar=1
.visible=1
.left=10

Do while oIE.Busy
Wscript.Sleep 20
Loop

wscript.Sleep 20

On Error Resume Next
.document.all("txtUserid").value = strUsername
.document.all("txtPassword").value = strPassword
.document.all("image1").click

Do while oIE.Busy
wscript.Sleep 20
Loop
wscript.Sleep 20
End with

' Open application after authenticate at hss.humana.com
SET oIE1 = CreateObject("InternetExplorer.Application")
with oIE1
.navigate navigateapp
.resizable=1
.height=720
.width=1000
.menubar=1
.toolbar=1
.statusbar=1
.visible=1
.left=10

End with

We are using Final Builder 7.0 at Windows Server 2008 R2 enterprise. Kindly let us know if you require any other information regarding the same.

Regards

Vinod Soni

 

 

 

 

Hi Vinod Soni,

The issue here is that the script when in FinalBuilder Client is interacting with the local internet explorer. When its running on FinalBuilder Server it would be interacting with the servers internet explorer. This means it wouldn’t open the landing page for the person who ran the script as it doesn’t have access to the users machine.

Dear Team,

In this script I don't see any dependency on local machine and Final Builder server. At which line you have doubt that it's depend on local machine browser?

We have same version of browser at local machine and server and whatever URL we are trying to access belongs to third server.

The only question is Why it is working in FB client tool? and why not at FB server Web portal?

Regards

Vinod Soni

 

This is most likely an issue not running under a desktop session. If you are just wanting to hit the landing page, the Http Get action or the WGet action can do the same thing.