Dragging of Jtable cell data on to other object
Hi, I am struggling a lot to use the coordinates with Drag method. The desktop application does not support copy/paste action on the object and we have to drag the data on it. I have attached an image. So, we have two objects in image, On top right, the object 1 jtable has few rows and we need to drag data from row 1...5 and col 1. (mean all cells in the first col). The height of each cell is 20 i.e each jtable cell is 20 + 20 + 20 and so on. Now the problem is I am unable to quite understand the parameters in the drag method. Four parameters are required, the first two seems to be working, but last two creating problems in combination with the first two parameters. I'm looking for a solution based on some equation using ScreenLeft and ScreenTop of both objects. Can anyone help by suggesting an equation by looking at the attached image please. This is something I need to proceed with my next scenarios. I'm using scripts and BDD scenarios. Thanks in advance.Solved2.5KViews0likes8CommentsIncrementing Project.Variables from command line test execute
Hi, I have the below test structure but the variable not getting value from the command line. Variable page -> Temporary I have a var called count which has 0 as default value I have a command line in which I have addedTestComplete.exe "C:\Work\My Projects\MySuite.pjs" /run /pv:count=%x% here %x% = 0,1,2,.... (increments each time command line executes) depends on the test run 1,2,3,4.... I have a After Feature hook that stores: var count = Project.Variables.count; Log.Message(count); The problem is that count is always 0.Solved1.6KViews0likes17CommentsGlobal Script folder for different projects
Hello everyone, I need an urgent help if possible. I recently started to work on the automation suite that was previously handled by my ex colleague. So, he was using a folder named Scripts as in attachment AskTC1.png which stores all the .js and step definitions files and in this way those files were appearing in all projects (i.e. common/shared to all projects). He used to first create a .js file in a project he needed using Test Complete GUI and copied that file in a 'Script' folder manually to make it appeared in other projects as well. He then removed the same file from the project he first created the file to avoid any conflicts as in attachment 'ProjectsScripts.jpg'. I don't know how it worked for him, but when I follow the same method for my new files, they just don't appear in any other project except the one I created that file in. I can use the Add existing file method and it works, but that means adding the file individually in all projects. Do you think the method my colleague used was right and if I am missing anything in his method as its not working for me. Thanks in advanceSolved1.4KViews0likes2CommentsHow to create dependency between BDD scenarios
I want my scenario should run only when the other scenario result gets passed. For example, In below case, I want to make a dependency between Scenario A and B. Such that If the Scenario A get failed then Scenario B should not run rather it has to be skipped. Note: At the same time the dependency is only between A and B so, C should run. How can we make in TestComplete. Any hope. Feature: Description of the new feature1 Scenario: Scenario A Given some precondition When an action is performed Then validate a condition Scenario: Scenario B Given some precondition When an action is performed Then validate a condition Scenario: Scenario C Given some precondition When an action is performed Then validate a conditionSolved1.2KViews0likes4CommentsHow to skip the BDD test
How to skip the BDD test. I have 2 scenarios below. I want Scenario2 should be Skipped. Feature: Check the User Profile settings Check all the ways to open the settings form. Check the edit features. Scenario: Scenario1 Given The tested app is running And The Login form is on screen When I enter JohnSmith in the Name edit box And I enter no password And I click Sign In Then I should see 'Hi, John Smith' in the toolbar Scenario: Scenario2 Given The tested app is running And The Login form is on screen When I enter JohnSmith in the Name edit box And I enter no password And I click Sign In Then I should see 'Hi, John Smith' in the toolbar Can anyone please help with this.1.1KViews0likes5CommentsJavafx webview controls
Hi, Our developer has implemented a username and password fields into javafx webview. I have enabled all available controls in my project properties but I am not able to get access to the fields inside webview. Any help would be really appreciated. Thanks TestQA1KViews0likes13CommentsCalling units from one project to another without Importing them
Hi, There's an option to import units from one project to another in Test Complete. I am looking for a way that allow me to create a common platform (either project that stores all units or a shared folder) to avoid duplicating units in all projects. So , I would be able to call the necessary units in my Assertions/Test units in different projects. I saw one answer in Community which suggest to create a shared folder outside Suite and somehow they managed to use the common units in their projects. I am not a very advanced developer and if someone can guide me on this please? I am trying to avoid duplication and looking for a clean framework. ThanksSolved1KViews0likes5CommentsIssue when trying to run a specific scenario file and tag when calling through command line
Hello, I am trying to run specific scenarios in a feature file via command line. However, it appears that all the scenarios are being run in the feature file regardless of the tag. Command being used: TestComplete.exe <path to project> "/project:project_name" /test:"Scenarios|example1" /tags:"@featuretag" /rSolved1KViews0likes6CommentsAdding a dynamic/Incrementing variable in Gherkin Scenario in Test Log
Hi, Is there a way we can add a variable in Scenario statement that increments automatically with each next scenario..For Example: Scenario: 1 Test Case Scenario: 2 Test Case Scenario: 3 Test Case Scenario: 4 Test Case I don't want to manually change the test case number as often I end up making mistakes in the numbering. I need them in the test log. Thank you.999Views0likes2CommentsExtracting Picture from logs
Hi, I have a requirement to store picture from test log whenever an error occurs. So, if an error occurs and there's a 'Has Picture' attribute with an attachment then the event should be able to save the picture attached to that error in a folder. I went through some documentation but its mostly getting all pictures I think. Is there any way I can check with LogParams that there is a picture in 'Has Picture' attribute and then based on it, I can extract the 'Picture' from the bottom section where Pictures, Details and Call Stack exist. Thank you986Views0likes5Comments