Ask a Question

Consistency from Script to Script

SOLVED
mschofer
Occasional Contributor

Consistency from Script to Script

I am right non somewhat impressed by the product as well as disappointed to the last of real world tips and tools.

Here is a simple little query, How do I maintain consistency from script to script.

 

For example I have a fairly simple script reading from a spread sheet (purely using navigation) and the script works the first few times through and then I came back later and the script is off by a field or two.

 

 

6 REPLIES 6
Marsha_R
Champion Level 2

I'm going to guess that you've recorded your tests and are using coordinates instead of object names.  Coordinates can change from test run to test run, so it's recommended that you switch to object names in order to avoid that problem.   

 

If that's not the issue, then it would be helpful if you post a screen shot of your code, tell us where the failure occurs, and under what conditions.  

MarkSchofer
Frequent Contributor

Thank You. 

Our directive is to to take a non technical approach and use Keyword scripts. Yes I agree with you and like that there may be on alternative. I am new to this tool and I an testing to see if it meets our objectives.  Is this approach only available through scripts are can it be used in keyword tests.

Yes, it can be used in keyword tests.  

 

The 101 video in this set may be of some help:

https://academy.smartbear.com/store/507489-testcomplete-101-201-and-301

MarkSchofer
Frequent Contributor

Lets get you a company car.   Thank you very much. 

AlexKaras
Champion Level 2

Hi,

 

reading from a spread sheet

Consider Excel object (and operations under Excel group) if you are reading from Excel spreadsheet.

 

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================

I missed the spreadsheet detail.  Here's a video for that too:

 

https://support.smartbear.com/testcomplete/docs/testing-with/working-with-external-data-sources/exce...

 

@AlexKaras and I will share the company car 😁 

cancel
Showing results for 
Search instead for 
Did you mean: