Quantcast
Channel: Micro Focus QTP (UFT) Forums - All Forums
Viewing all 1793 articles
Browse latest View live

How to select item within WebMenu

$
0
0
hi,

I need help. I had figured out a way to select links using descriptive programming and am now not able to select an item within a WebMenu.
I cannot loop through theitems within that WebMenu .
Properties of the WEbMenu include:

top level items: Email;SMS;Telephone (Land Line);Postal;Cell Phone
outetext: EmailSMSTelephone (Land Line)PostalCell Phone

How can I loop through and select oneof these options?

Playback skipping characters

$
0
0
When I record a step and then play it back, UFT skips a letter and then the rest of the play back fails. Its almost as if its going too fast. Is there a way to fix this? perhaps a way to slow it down maybe?

inetcpl.cpl not clearing SSL cache when tests are run from ALM

$
0
0
I have a set of test scripts that use different certificates. Each script begins by opening IE and then calling a function to run inetcpl.cpl to clear the SSL cache. That way I can run Script1 with Cert1, Script2 with Cert2, etc. in the same ALM test set. The script ends with the browser closing, so the next script runs from scratch.

However, a recent change to Windows 7 has made this solution not work. Now the SSL cache is only cleared once all IE sessions are closed, not just the one running the test. This means that the script calling Cert2 will fail because Cert1 is still in operation. Of course, in order to run the enter test set, ALM has to be open in a browser that does not close between tests.

Is there any way to clear the SSL cache in the browser running the test without closing the browser that is running ALM?

UFT Crashes Frequently

$
0
0
Hi,

I am automating Oracle Forms as part of my project and i am using UFT 12.02 version. Whenever i try to add a particular frame to the object repository UFT crashes completely and i have to close and restart again. I am able to spy the objects and capture its properties inside the frame, but i spy a particular object UFT crashes again, now i understood that the issue is with the particular object and not with the frame. 

Can someone provide a solution for this issue. Do i need to install any patch for this any other workaround for this.

Entering a value in a WebEdit makes the other webedit disabled.

$
0
0
I have two enabled Webedit fields. On entering a value in one webedit manually, makes the other Webedit disabled.
If I am doing this through UFT, then the value is getting set in one webedit but its not changing the other webedit to disabled.

Webedit 1 - Name
Webedit 2 - userid

How to write reports from scripts into excel

$
0
0
Hi Everyone,

We are trying to write the inputs from Reporter.Reportevent statement in script to an excel .

Requirement is to take values from Reporter.Reportevent parameters and insert them in excel for all the Reporter.Reportevent statement in test case. Then move to next test case and do the same.

Also coloums in excel will be "Test Case Name", "Test Case Description", "Reporter.Reportevent 1st Parameter", "Reporter.Reportevent 2nd Parameter", "Status from Reporter.Reportevent status parameter"

Pls help me as asap.

how to connect qtp to hive

$
0
0
Hi Sir/Mam,

I am trying to connect QTP to hive using the below code, but it is not working. Can any one suggest me how to connect

Set objConnection = CreateObject("ADODB.Connection")

Set objRecordSet = CreateObject("ADODB.Recordset")

objConnection.open "Driver = Hive;Database Port = 10000;Driver(JDBC) = Hortonworks HiveServer2 HDP 2.3;Database URL =                                     

        jdbc:hive2://g4t8346c.houston.hp.com:10000; Database Userid = srvc_eap_uat;Database Password = *********;"

 objRecordSet.open sqlQuery, objConnection 

 value = objRecordSet.fields.item(0)                

 msgbox Value
'
objRecordSet.Close
objConnection.Close
Set objConnection = Nothing
Set objRecordSet = Nothing


Thanks 
Anusha

Need Any digit in xpath path using Regular expression

$
0
0
Below is the string in which I need any digit to be allowed in Table[1] part, since table no. keeps changing. Kindly suggest.
I tried Table[\d], Table[\\d] , Table[?[0-9]], Table[[0-9]+] , however nothing seems to be working. Please suggest


Code:
Browser("name:=PROCESSIT - Powered by ReadSoft - TASK DETAIL").Page("title:=PROCESSIT - Powered by ReadSoft - TASK DETAIL").
WebTable("xpath:=//DIV[@id=""pwAliases::_ccntr""]/DIV[1]/DIV[1]/DIV[2]/DIV[1]/DIV[2]/TABLE[[b]1[/b]]").Highlight

How to schedule scripts in ALM and UFT

$
0
0
Hi Friends,

I am planning to save my hours on execution.

I have 5 Suites and 100 Business process tests in ALM. I need to execute those scripts in timely fashion like un attendly.

I want to execute those scripts through schedulars.. 

What is the procedure of scheduling or we need to write any code.

Please provide with your solutions.

I am using UFT 12.5 and ALM 12.2


""This one is priority solution will be appreciated and thank ful

Regards,
Venky

Selenium Scripts in ALM

$
0
0
Hi Friends,

I have a requirement of executing selenium scripts in ALM.

I have googled and found some solutions like changing DLL Files and Jacob.jar file in selenium and integration.

I excatly not getting the point. Any one knows the solution please post your solutions with priority..



"Solutions will be much appreciated and Thankful


Regards,
Venky

JDBC connection for UFT

$
0
0
Hi,

I am trying to connect to the JDBC database server using UFT.

But i am getting all kinds of error.

Below is code that i am using


import java.sql.*;
import java.math.*;
import oracle.jdbc.pool.OracleDataSource;


OracleDataSource ods = new OracleDataSource();

      ods.setUser("<user>");
      ods.setPassword("<pwd>");

ods.setURL("jdbc:oracle:thin:@<database name>");

Connection conn =
        new oracle.jdbc.OracleDriver().defaultConnection();
Connection conn = ods.getConnection();


It is giving me syntax error for import java.sql.*;

Also when using the connection string in API test than UFT is not able to find the drivers. Please help.


Regards,
Anjali

Need help to improve the statement

$
0
0
The statement below work only if there are several items in the Installed Assets applet but if there is only one item it will not work. Is there a way to improve the statement below? Also if there are several items in the list and you need to scroll down and the item you were looking for will be seen once you scroll down it will also cause an error.  Please help.

Dim objProduct
Dim intLoopCounter
Dim intLoopCounter2
Dim objProduct
intLoopCounter = 0
intLoopCounter2 = 0
Do Until objProduct = strInstalledAssets
 objProduct = SiebApplication("Siebel Communications").SiebScreen("Accounts").SiebView("Account Summary").SiebApplet("Installed Assets").SiebList("List").SiebText("Product").GetROProperty("text")
    DataTable.Value("data", dtLocalSheet) = objProduct
    intLoopCounter = intLoopCounter + 1
    SiebApplication("Siebel Communications").SiebScreen("Accounts").SiebView("Account Summary").SiebApplet("Installed Assets").SiebList("List").ActivateRow intLoopCounter
  
Loop
intLoopCounter2 = intLoopCounter - 1
SiebApplication("Siebel Communications").SiebScreen("Accounts").SiebView("Account Summary").SiebApplet("Installed Assets").SiebList("List").ActivateRow intLoopCounter2

UFT not recognizing windows object

$
0
0
While running a batch scheduler UFT does not recognize the windows object "Open".
Have no issues when the screen is open but when the screen is Xout it gives an error saying object is disable.
We are testing Web application with 12:53 verson .
Any recommendations ? TIA.

UFT and Oracle OBIEE

$
0
0
Hi all,

Could someone help me out here please? Is it possible to do test automation with Oracle OBIEE dashboards? Does UFT support it?

Thanks!

Not able to click on webbutton

$
0
0
Hi,
I test one application in which I have to click save button after set value in mandatory field(web edit) .
As per application if i dont edit mandatory field then save button does not activated. But when i set value using qtp in mandatory field , still save button does not activated and i am not able to click on that.
Please help me . thanks in advance.

To check table is sortable or not.

$
0
0
Hi,
I am new in QTP . I have to check particular table is sortable or not using QTP. What is the simplest way to do this. Table has four column and i have to check for all columns.
Thanks in advance,
Ravi

About browsers

$
0
0
Que :
say for eg we have opened 3 browsers for chrome and 3 browsers for IE.
We don't know which we have opened firstly and don't know the sequence also. ( 1 chrome 2 IE 2 chrome 1 IE - may be)
But I have to work on third browser. How we can work ?
Creation time will work here ?? I mean that will consider separately for IE and chrome?

Test runned from QualityCenter generated an error "Attempted to divide by zero."

$
0
0
Hi,
I have a test created not by me.

If I run the TEST from UFT, it is runned and completed correctly.

If I run the same TEST from QualityCenter (in the same machine), it generates the following error:
- Source: PresentationFramework
- Target Method: System.Windows.Size MeasureOverrideImpl(System.Windows.Size, System.Nullable`1[System.Double] ByRef, System.Collections.Generic.List`1[System.Double] ByRef, System.Nullable`1[System.Double] ByRef, Boolean)
- Message: Attempted to divide by zero.

I have already re-installed UFT, but the problem there is still.

Where could be the problem?

Thanks.

Grab multiple line data from log file

$
0
0
Actually I am doing automation on PuttY which it will login to putty and grab a certain data for me. But it only grab the first line output of the command. Can you please help me out?The data are grab from the log file of the putty. My current code :
Quote:Function GrabShSNMP
Const ForReading = 1
Set objRegEx = CreateObject("VBScript.RegExp")
objRegEx.Pattern = "show snmp community"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile(Environment("logfile"), ForReading)
Do Until objFile.AtEndOfStream

    strSearchString = objFile.ReadLine

    Set colMatches = objRegEx.Execute(strSearchString)

    If colMatches.Count > 0 Then
    strSearchString = objFile.ReadLine
    Datatable.value("SNMP_Mode",dtGlobalsheet) = strSearchString

    End If
Loop
objFile.Close
Set objRegEx = Nothing
Set objFSO = Nothing
Set objFile = Nothing
End Function

code for validation to create a sub folder

$
0
0
when we are creating sub folder under main folder it is creating as a tree structure.
Do we need the code for validation to create a sub folder..??

ex: when we see in QC-ALM, subfolders are under main folder
Viewing all 1793 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>