Contributions
unable to open Project suit file .pjs through command prompt
Hi, Iam trying to automate one sample application using testcomplete with c#. we have once java application,i need to access the controls and click and set text values,using automatedqa.script and automatedqa.testcomplete connected application libraries for .net,please find the below give code this is console application,i want to run through command prompt,but iam getting error(can not create test complete), if i run this through .net no issue,but if i try to run the same application through command prompt,iam facing object error. testcomplete working directory shows c:\windows\system32 and .net application shows correctly,i am not able to find the solution for this,please help me on this. Connect.RunTest("TestProjectRefsLogs", "TestProjectRef", @"F:\latest_code_4-20-17\latest\Specflow\latest_code_tinyframework - latest\TinyFrameworkLibrary\TinyFrameworkLibrary\TestProjectRef\TestProjectRef.pjs"); System.Console.WriteLine("Tiny Framework is UP!!"); Thread.Sleep(2000); workflowHost = Connect.Sys["Process"]("java"); if (workflowHost["Exists"]) { PropArray = new AutomatedQA.script.var(new string[] { "JavaclassName" }); ValuesArray = new AutomatedQA.script.var(new string[] { "TouchTable" }); panel = workflowHost["Find"](PropArray, ValuesArray, 30000); if (panel["Exists"]) { panel["Click"](); } } Regards, Prabhakar k.936Views0likes2CommentsRe: un able to get table wValue based up on row and column no
Hi, yes i have tried the same var value=(string)panel["wValue"](2,coulmnname); still iam not getting the value parameter types in Testcomplete12 for wValue(int,object),so iam using automatedqa.script andautomatedqa.testcomplete in .net,please help me on this Regards, Prabhakar k.1.1KViews0likes1Commentun able to get table wValue based up on row and column no
Hi iam trying to find value in java swing table row data,so based on that i need to select the row and do some button clicks,this is my requirement . to do this iam using automatedqa.script and automatedqa.testcomplete libraries for .net please find the below given code connect.runtest(.pjs file); var workflow=connect.sys["process"]("java") if(workflow(exists) { var prop=new var(new string[] {"Name"}); var valuear=new var(new string[]{swingobject(\"xxxx\",\"\",0)"} var panel=workflow["Find"](prop,valuear,30000); if(panel[Exists"] { var rowcount=(int)panel[""wRowCount"]; var columncount-(int)panel["wColumnCount"] var coulmnname=(string)panel["wColumn"(2); //here iam getting the column name var value=(string)panel["wValue"](2,2); //here iam trying to get value from the 2nd row and 2nd column but iam not getting the value here,please help me on this Regards, Prabhakar k. } }1.1KViews0likes3CommentsRe: Unable to see Java swing objects under process(java) in Testcomplete
Hi Shankar, it is java desktop standlone application,iam able to see java swing objects under java in object browser when i open testcomplete,but if i open test complete using Psexec,exe -i -s -d "c:programfiles(x86)\smartbear\testcomplete12\bin\testcomplete.exe",i am able to see java swing objects. but here main problem is iam trying to automate java application using c# using two libraries(automatedqa.script.dll,automatedqa.testcomplete.dll),please find the below given code. Connect.RunTest("TestProjectRefsLogs", "TestProjectRef", @"C:\Users\\Documents\PattabiSamples\TinyFrameworkLibrary\TinyFrameworkLibrary\TestProjectRef\TestProjectRef.pjs"); workflowHost = Connect.Sys["Process"]("java"); if (workflowHost["Exists"]) { PropArray = new var(new string[] { "JavaClassName" }); ValuesArray = new var(new string[] { "ComboBoxDemo2" }); panel = workflowHost["Find"](PropArray,ValuesArray,30000); if (panel["Exists"]) { } } please let me know why it is like that1KViews0likes1CommentUnable to see Java swing objects under process(java) in Testcomplete
Hi, One Java Application is running,i am not able to see all the swing objects of this process in TestComplete. it shows only names but not form names with controls all the stuff,please help me on this iam in restricted user,so that iam not able to find the swing objects. please let me know the solution for this Regards, prabhakar k.1.1KViews0likes3CommentsObject Browser in test complete is not showing java process objects with childs
Hi, i need to automate java desktop application from c#,java desktop application is running,iam not able to see childs and panels etc,if i run the belwo code. iam using automatedqa.script and automatedqa.testcomplete.dll in c# as reference,please find the below code hereTestProjectRef.pjs is dummy project suit,there is no projects RunTest("TestProjectRefsLogs", "TestProjectRef", @"C:\Users\..\Documents\PattabiSamples\TinyFrameworkLibrary\TinyFrameworkLibrary\TestProjectRef\TestProjectRef.pjs"); System.Console.WriteLine("Tiny Framework is UP!!"); var workflowHost; var panel; var pmsTextBox; var p, w; var PropArray, ValuesArray; Process.Start(@"C:\Users\310275454\Documents\Visual Studio 2013\Projects\testcomplete_login\testcomplete_login\bin\Debug\testcomplete_login.exe"); Thread.Sleep(2000); workflowHost = Connect.Sys["Process"]("testcomplete_login"); if (workflowHost["Exists"]) { PropArray = new var(new string[] { "awtcomponet" }); ValuesArray = new var(new string[] { "loginpanel" }); panel = workflowHost["FindChild"](PropArray, ValuesArray); if (panel["Exists"]) please let me know what is the work around for this. { } } in the panel iam getting "no further information on this object could be discoverd693Views0likes1Commentis it possible to access java desktop applications in c# using automatedqa.testcomplete.dll
Hi, Iam unable to access java desktop application child from c#,iam trying to access using automatedqa.testcomplete.dll and automatedqa.script.dll in c#,please tell me is it possible to access java application from c# using those libraries var workflowHost = Connect.Sys["Process"]("java",4"); if (workflowHost["Exists"]) { PropArray = new var(new string[] { "awtcomponentname" }); ValuesArray = new var(new string[] { "loginallelementpanel" }); panel = workflowHost["FindChild"](PropArray, ValuesArray); } please nay one let me know i got struct here,this is my requirement to automate java application through c#652Views0likes1Comment