上一页 1 ··· 5 6 7 8 9
摘要: 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 阅读全文
posted @ 2014-03-11 16:36 Ellie_Auto 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2013-09-14 23:11 Ellie_Auto 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2013-09-14 23:03 Ellie_Auto 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2013-09-11 13:49 Ellie_Auto 阅读(345) 评论(0) 推荐(0) 编辑
摘要: Dim WshShellset WshShell = CreateObject("WScript.Shell")WshShell.SendKeys "{DOWN}"WshShell.SendKeys "{ENTER}"set WshShell = nothing 阅读全文
posted @ 2013-09-10 15:54 Ellie_Auto 阅读(103) 评论(0) 推荐(0) 编辑
摘要: ' 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 阅读全文
posted @ 2013-08-29 11:23 Ellie_Auto 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2013-08-08 10:38 Ellie_Auto 阅读(192) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9