摘要:
1. Install jdk2. Set system variableseg.JAVA_HOME= C:\Program Files (x86)\Java\jdk1.6.0_43classpath= C:\Program Files (x86)\Java\jdk1.6.0_43\lib\tools.jarpath = C:\Program Files (x86)\Java\jdk1.6.0_43\bin3. Run-time Setting in Loadrunner 阅读全文
摘要:
Public Function QTP_Change_Color(pathway,sheetname,x,y,color) Dim srcData,srcDoc,sp1,sp2,num,use,a1,a2,a3 set srcData = CreateObject("Excel.Application") srcData.Visible = True set srcDoc = srcData.Workbooks.Open(pathway) srcDoc.Worksheets(sheetname).Activate If color = "red" The 阅读全文
摘要:
Call Test Class Tester Dim mvarTesterName,mvarAge,mvarGender Sub Class_Initialize '构造函数 MsgBox"接下来,大家欢迎新同事的到来!" End Sub Sub Class_Terminate'析构函数 If mvarGender Then MsgBox "很遗憾," & mvarTesterName & "先生脱离了测试行业!" Else MsgBox "很遗憾," & mvarTeste 阅读全文
摘要:
Use the GetCellData(j,i) Function for Cell dataandUse the GetRowData(j) Function for Row Datawhere “j” and “i” are Row and Column values respectively.AUTOMATION SCRIPTSDim cellData,columnCount,rowDatacellData =0columnCount=0rowData=0columnCount=Browser(“Browser”).FlexApplication(“Yuri181756138″).Fle 阅读全文
摘要:
Dim WshShellset WshShell = CreateObject("WScript.Shell")WshShell.SendKeys "{DOWN}"WshShell.SendKeys "{ENTER}"set WshShell = nothing 阅读全文
摘要:
' get the number of rows in the tablerowCount=Browser("Browser").FlexApplication("App").FlexApplication("Fl exClient").FlexPanel("FlexPanel").FlexCanvas("App Home").FlexPanel("Search Results").FlexDataGrid("searchResults").Get 阅读全文
摘要:
Write a parameter to a text file in loadrunner scriptchar *filename = "c:\\myfilename.txt"; long file_stream;vuser_init(){if ((file_stream = fopen(filename, "a+")) == NULL) //open file in append mode{ lr_error_message ("Cannot open %s", filename); return -1; }fprintf (f 阅读全文